aws / aws-appsync-community

The AWS AppSync community
https://aws.amazon.com/appsync
Apache License 2.0
506 stars 32 forks source link

Problem with AppSync API - LAMBDA Authorizer with Merge API #362

Closed marciorcruz closed 6 months ago

marciorcruz commented 6 months ago

Problem with AppSync API - LAMBDA Authorizer with Merge API

The AppSync Merge API is unable to execute the DataSources of Your Merged APIs when the authentication type is AWS_LAMBDA

If we change it to API_KEY it works

Error Message: df90a7b2-f294-47ff-813d-99869dd687f5 Response Headers: {x-amzn-ErrorType=BadRequestException, X-Amzn-Trace-Id=Root=1-66481db3-1975d48010b455020bb6bc39}

This error only happens with the Merge API in GRAPHQL apis and works normally

Can anyone help?

marciorcruz commented 6 months ago

We added permission to the authorizer lambda

{ "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": "appsync:", "Resource": "" } ] }

marciorcruz commented 6 months ago

Closed