sid88in/serverless-appsync-plugin

[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

DefaultAction: auth.config.defaultAction || 'ALLOW',

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 ๐Ÿ“ฆ๐Ÿš€

Thanks, will do

๐ŸŽ‰ This issue has been resolved in version 2.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€