Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config setting to override image pull credentials type #108

Open
joschi opened this issue Apr 13, 2021 · 0 comments
Open

Config setting to override image pull credentials type #108

joschi opened this issue Apr 13, 2021 · 0 comments

Comments

@joschi
Copy link

joschi commented Apr 13, 2021

The aws codebuild start-build command in the AWS CLI has a parameter --image-pull-credentials-type-override to override the service role used to pull/provision the custom images in a AWS CodeBuild build project.

Unfortunately the AWS CodeBuild Jenkins Plugin seems to be missing this configuration setting.

https://docs.aws.amazon.com/cli/latest/reference/codebuild/start-build.html

--image-pull-credentials-type-override (string)

The type of credentials AWS CodeBuild uses to pull images in your build. There are two valid values:

CODEBUILD
Specifies that AWS CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust AWS > CodeBuild's service principal.

SERVICE_ROLE
Specifies that AWS CodeBuild uses your build project's service role.

When using a cross-account or private registry image, you must use SERVICE_ROLE credentials. When using an AWS CodeBuild curated image, you must use CODEBUILD credentials.

Possible values:

  • CODEBUILD
  • SERVICE_ROLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant