- Newest
- Most votes
- Most comments
The issue you're experiencing is related to IAM role permissions and trust relationships. Even though you're logged in as an Administrator, there might be a problem with the trust policy of the role that Amplify is trying to assume.
To resolve this issue, you should:
-
Check the trust relationship of the IAM role that Amplify is trying to assume. The trust policy should allow the Amplify service to assume the role. You may need to update it to include both the specific regional Amplify service and the general Amplify service.
-
Ensure that the trust policy of the role includes the following:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": ["amplify.amazonaws.com", "amplify.eu-west-1.amazonaws.com"] }, "Action": "sts:AssumeRole" } ] }
-
Verify that all AWS resources related to your Amplify app are in the same region (eu-west-1 in this case).
-
Review the IAM role associated with your Amplify app and ensure it has the correct permissions, including AdministratorAccess and AdministratorAccess-Amplify policies.
-
Check if there are any inline policies attached to the role that might be restricting access.
-
Review your CloudTrail logs for any denied API calls related to AssumeRole actions.
If the issue persists after these steps, you may need to:
- Invalidate the cache or deploy a fresh version of the app.
- Double-check your Amplify Hosting settings, particularly around custom domains and redirects.
- Consider reaching out to AWS Support for more specific assistance if the problem continues.
Remember that even though you have administrator access, the specific role Amplify is trying to assume may have different permissions or trust relationships that need to be configured correctly for the deployment to succeed.
Sources
Unable to Assume IAM Role in AWS Amplify Deployment | AWS re:Post
on amplify react app deploy issue | AWS re:Post
I have checked all of above but still I can't get my app deployed. Currently I have a free tier account. How can I get in touch with AWS Support? In the support center there is no option (at least with my subscription) to get support about AWS amplify. Thanks
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 5 months ago
