I’ve been getting an error following whenever I try to deploy my app on AWS Amplify:
Unable to assume specified IAM Role. Please ensure the selected IAM
Role has sufficient permissions and the Trust Relationship is
configured correctly.
I’ve tried a solution found in Stack Overflow:
Unable to assume specified IAM Role when deploying with AWS Amplify using GitHub
I modified Trust Relationship like below:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": [
"amplify.amazonaws.com",
"amplify.ap-northeast-2.amazonaws.com"
]
},
"Action": "sts:AssumeRole"
}
]
}
However, it didn’t work for me. I still get the same error message.
Is there any other solution for this? It occurs on build process.