AWS::CodeBuild::Project RegistryCredential - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::CodeBuild::Project RegistryCredential

RegistryCredential is a property of the Amazon CodeBuild Project Environment property type that specifies information about credentials that provide access to a private Docker registry. When this is set:

  • imagePullCredentialsType must be set to SERVICE_ROLE.

  • images cannot be curated or an Amazon ECR image.

For more information, see Private Registry with Amazon Secrets Manager Sample for Amazon CodeBuild.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Credential" : String, "CredentialProvider" : String }

YAML

Credential: String CredentialProvider: String

Properties

Credential

The Amazon Resource Name (ARN) or name of credentials created using Amazon Secrets Manager.

Note

The credential can use the name of the credentials only if they exist in your current Amazon Web Services Region.

Required: Yes

Type: String

Minimum: 1

Update requires: No interruption

CredentialProvider

The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Amazon Secrets Manager.

Required: Yes

Type: String

Allowed values: SECRETS_MANAGER

Update requires: No interruption

See also