Hi,
I’m trying to attach an exported out value from SST App Stack and attach it to a function event. However, I when I do so it runs into a configuration validation error.
Configuration warning at ‘functions.createUser.events[1].cognitoUserPool.pool’: should be string
My yml file is:
createUser:
handler: createUser.handler
description: function to create a new user
events:
- http:
path: user
method: post
cors: true
authorizer: aws_iam
- cognitoUserPool:
pool: !ImportValue ${self:custom.sstApp}-UserPoolName
trigger: PreSignUp
My exported value from my sst app
new CfnOutput(this, 'UserPoolName', {
value: userPool.userPoolProviderName,
exportName: app.logicalPrefixedName('UserPoolName'),
});
Can someone explain how why I’m running into configuration error? I’ve hit a brick wall for a few hours now.