-
Notifications
You must be signed in to change notification settings - Fork 87
Description
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v20.14.0
Amplify CLI Version
12.9.0
What operating system are you using?
macOS 15.1
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No. The only "manual" change I made was overriding my DynamoDB table names using amplify override api. I guess this could be the reason, because the error appends a role name like 'IAfe82d0-2aokgojt5jbq7dzxznmrvbqgwi-dev' to my TableName, just as it would be if I wouldn't use overrides.
Describe the bug
My GraphQL queries break after updating to CLI 12.10 and later (tried up to 12.13).
If I push my project using an CLI version > 12.9 and attempt to perform list or query operations from the client side, I get errors like this:
"User: arn:aws:sts::[ACCOUNT_ID]:assumed-role/PublicFeedbackItemIAfe82d0-2aokgojt5jbq7dzxznmrvbqgwi-dev/APPSYNC_ASSUME_ROLE is not authorized to perform: dynamodb:Query on resource: arn:aws:dynamodb:eu-central-1:[ACCOUNT_ID]:table/PublicFeedbackItem/index/byStatus because no identity-based policy allows the dynamodb:Query action (Service: DynamoDb, Status Code: 400, Request ID: KL839V8TGVEMTOOJUV75SNSOD3VV4KQNSO5AEMVJF66Q9ASUAAJG)"
Expected behavior
My queries should work without the DynamoDB exception error when using a cli version > 12.9
Reproduction steps
1.) Override table names in a current project
2.) Deploy project
3.) Update to cli >= 12.10
Queries fail
4.) Downgrade CLI to 12.9
5.) Deploy
All works as before
I think I created my project about two years ago and never had problems until now.
Project Identifier
DiagnoseReportUploadError
✖ Sending zip
Log output
# Put your logs below this line
Additional information
No response
Before submitting, please confirm:
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- I have removed any sensitive information from my code snippets and submission.