2 Answers
- Newest
- Most votes
- Most comments
1
Hi,
I recently faced same issue and I was able to resolve it by doing the following :
- Open the IAM console at https://console.aws.amazon.com/iam/ and select your IAM role. (e.g SERVICE_ROLE)
- Click on the
Trusted Relationships
tab and verify that your IAM role has the correct trust policy for AWS CodeBuild. See example JSON below :
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "codebuild.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
For more information refer to this documentation: Create a CodeBuild service role
answered a year ago
0
Hi jonwis, I am Yong from AWS CodeBuild team.
Do you still see this error? My suggestion is to follow this troubleshooting guide. https://docs.aws.amazon.com/codebuild/latest/userguide/troubleshooting.html#troubleshooting-assume-role
If you still see the same error, can you please run the command with debug logging turned on and private message me the entire response payload? I can then help troubleshoot on our side.
aws codebuild --debug create-project ...
answered 5 years ago
Relevant content
- Accepted Answerasked 2 years ago
- asked 5 months ago
- asked 9 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago