I was trying to deploy my application with AWS Amplify using github and I got this error :
2020-07-03T10:39:32.225Z [ERROR]: !!! Unable to assume specified IAM Role. Please ensure the selected IAM Role has sufficient permissions and the Trust Relationship is configured correctly.
2020-07-03T10:39:32.348Z [INFO]: # Starting environment caching...
2020-07-03T10:39:32.348Z [INFO]: # Environment caching completed
Terminating logging...
And this is the trust policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "amplify.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}