[v2] - Error when using AMAZON_COGNITO_USER_POOLS as additionalAuthentications type
jeremy-white opened this issue ยท 6 comments
In my serverless.yml I have:
authentication:
type: AWS_IAM
additionalAuthentications:
- type: 'AMAZON_COGNITO_USER_POOLS'
config:
userPoolId: xxxx
Upon deploy this results in the error:
UPDATE_FAILED: GraphQlApi (AWS::AppSync::GraphQLApi)
Property validation failure: [Encountered unsupported properties in {/AdditionalAuthenticationProviders/0/UserPoolConfig}: [DefaultAction]]
Problem appears to be that DefaultAction is always set here, when it's only valid for authentication not additionalAuthentications
I had the same problem and was not able to configure both auth methods.
Thank you @jeremy-white and @marcelinhov2
This is a bug. I will fix it
๐ This issue has been resolved in version 2.0.0-alpha.16 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐
Maybe documentation should be updated too? https://github.com/sid88in/serverless-appsync-plugin/blob/alpha/doc/authentication.md
Thanks, will do
๐ This issue has been resolved in version 2.0.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐