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
已回答 1 年前
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 年前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前