- Newest
- Most votes
- Most comments
Based on your error message and the information provided, this is a common issue with AWS Amplify deployments failing to assume the specified IAM role. Here are several potential solutions to resolve this issue:
-
Trust Relationship Configuration: Your updated trust policy looks correct as it includes both the regional Amplify service (
amplify.ap-south-1.amazonaws.com) and the general Amplify service (amplify.amazonaws.com). This is the recommended approach. -
IAM Role Permissions: Ensure that the IAM role has the necessary permissions attached. The role should typically have policies like
AdministratorAccessandAdministratorAccess-Amplifyattached to it. -
Check for Restrictive Inline Policies: Verify that there are no restrictive inline policies attached to the role that might be limiting its capabilities.
-
Region Consistency: Confirm that all AWS resources related to your Amplify app are in the same region (ap-south-1 in your case).
-
CloudTrail Logs: Review your CloudTrail logs for any denied API calls related to AssumeRole actions, which might provide more specific information about why the role assumption is failing.
-
User Permissions: Ensure that the IAM user or role you're using to deploy has permission to call
sts:AssumeRolefor the role that Amplify needs to assume. -
Cache Issues: Try invalidating the cache or deploying a fresh version of the app.
Since you mentioned that this issue started occurring recently without any changes to your settings, it's possible that there might have been some changes to the AWS environment or service configurations. If the problem persists after checking all these items, you might need to contact AWS Support for more specific assistance.
Sources
Unable to Assume IAM Role in AWS Amplify Deployment | AWS re:Post
on amplify react app deploy issue | AWS re:Post
Amplify Error - Unable to assume IAM Role | AWS re:Post
"mcurrent credentials could not be used to assume *** role" error during amolify deployment | AWS re:Post
Troubleshoot IAM roles - AWS Identity and Access Management
answered a year ago
Relevant content
asked a year ago
asked 2 years ago
asked 2 years ago
asked a year ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 10 months ago
