- Newest
- Most votes
- Most comments
Hello.
How about setting up a trust policy like the one below?
https://stackoverflow.com/questions/65287024/permission-problem-accessing-codecommit-repository-during-build-phase
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": ["amplify.ap-south-1.amazonaws.com", "amplify.amazonaws.com"]
},
"Action": "sts:AssumeRole"
}
]
}
Are you sure that the error is related to the Amplify role? Could it be that you are calling some AWS service from your code? In this case, the error may be related to the called service and not to Amplify.
thats what i feel as the code is working without any issue in localhost and also i have tried redeploy a working version from git but the error in the bulid is same as below
2024-08-06T09:39:45.637Z [ERROR]: !!! Unable to assume specified IAM Role. Please ensure the selected IAM Role has sufficient permissions and the Trust Relationship is configured correctly.
Do you see more information in browser console?
there is nothing major i could find in the browser console. as the localhost been able to work properly as expected. while the redelpoying the past version of git it still fails and the error message from amplify has very limited information to check for the error
Relevant content
- asked a year ago
- asked 9 months ago
- asked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a month ago
i have tried this solution but the same error
It worked for me! Although my app runs in ap-northeast-3, setting this ap-south-1 did the job.