2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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
답변함 일 년 전
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 ...
답변함 5년 전