Closed VincentvdE closed 2 weeks ago
Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂
Hi @VincentvdE, Apologies for the delay. Thanks for bringing this up. We’re able to reproduce the issue by following the steps outlined in the description, so we’re marking it as a bug for the team to investigate further.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Reopening pending release of fix
We have released this in @aws-amplify/graphql-api-construct@1.15.0, @aws-amplify/data-construct@1.11.0. Update your project dependencies with an npm update
to consume the fix.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Environment information
Describe the bug
A custom mutation ("increment") is not accessible by a Lambda function. Upon checking the generated schema in AppSync, the mutation is missing the @aws_iam directive, which is likely causing the access issue.
Reproduction steps
amplify/data/resource.ts:
amplify/data/increment.js
The generated schema looks like this:
The increment is missing the "@aws_iam". After manually adding it, it works. Shouldn't the
.authorization((allow) => [allow.resource(postConfirmation)]);
add that?