You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an Amplify CLI Function, I am assuming that choosing the 'read' option will allow us to perform queries. When using this option, "appsync:GraphQL" does not get added to the IAM Role Policy for this Lambda, thus initializing an AppSync Client in the Lambda fails.
Adding 'Create', 'Update', or 'Delete' then adds the necessary "appsync:GraphQL" action to the Lambda role. This may be by design, but took us a bit to figure out. May not be a Bug per se.
The text was updated successfully, but these errors were encountered:
I literally ran into this just today. There also doesn't seem to be a way to give only the appsync:GraphQL action to the role, without granting any other privileges. (Without manually editing the cf template)
When creating an Amplify CLI Function, I am assuming that choosing the 'read' option will allow us to perform queries. When using this option,
"appsync:GraphQL"
does not get added to the IAM Role Policy for this Lambda, thus initializing an AppSync Client in the Lambda fails.Adding 'Create', 'Update', or 'Delete' then adds the necessary
"appsync:GraphQL"
action to the Lambda role. This may be by design, but took us a bit to figure out. May not be a Bug per se.The text was updated successfully, but these errors were encountered: