Skip to content

codebuild:startBuild not working

0

I've given a role policys to be able to start codebuild builds.

The permissions I've added to the policies are:

"codebuild:BatchGet*",
"codebuild:List*",
"codebuild:Describe*"
"codebuild:StartBuild",
"codebuild:StopBuild"

A user can navigate to CodeBuild, list all projects, but when hitting the Start Build button, Access Denied.
What am I missing?

Edited by: hhjort on Mar 3, 2020 11:26 PM

asked 6 years ago822 views
4 Answers
0
Accepted Answer

Hi, thanks for your information. Currently it requires "s3:ListAllMyBuckets" permission to navigate to that page. An alternative is to use AWS CLI to start a build, eg:"aws codebuild start-build --project-name <project-name> --region us-east-1"

AWS
answered 6 years ago
0

Please make sure that you also have the right resource specified in the policy's Resource section. Refer to https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-permissions-reference.html.

AWS
answered 6 years ago
0

The resource is "*".

answered 6 years ago
0

Thank you, works fine!

answered 6 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.