I’ve been working with AWS Amplify Generation 2 for several months without problems. Everything was running smoothly until recently when my deployments started failing. When I push my latest changes, the build process crashes with this error message:
2025-07-24T00:22:12.992Z [ERROR]: !!! Unable to assume specified IAM Role. Please ensure the selected IAM Role has sufficient permissions and the Trust Relationship is configured correctly.
2025-07-24T00:22:13.079Z [INFO]: # Starting environment caching...
2025-07-24T00:22:13.079Z [INFO]: # Environment caching completed
I’ve already tried several troubleshooting steps. I removed the existing IAM roles and created fresh ones. I granted full administrator access to test if permissions were the issue. I double checked the trust relationship configuration multiple times. The weird part is that I didn’t modify any AWS Amplify settings recently. To confirm this wasn’t related to my recent code changes, I attempted to redeploy a different project that hasn’t been touched in weeks. That deployment also failed with the same error.
Here’s my current trust relationship policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"amplify.us-east-1.amazonaws.com",
"amplify.amazonaws.com"
]
},
"Action": [
"sts:AssumeRole"
]
}
]
}
I also tested with this simpler version:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "amplify.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
Neither configuration resolves the issue. Has anyone encountered this problem before? What else should I check?