AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

AWS::CodeBuild::Project RegistryCredential

RegistryCredential is a property of the AWS 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 AWS Secrets Manager Sample for AWS CodeBuild.


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


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


Credential: String CredentialProvider: String



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


The credential can use the name of the credentials only if they exist in your current region.

Required: Yes

Type: String

Minimum: 1

Update requires: No interruption


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

Required: Yes

Type: String


Update requires: No interruption

See Also

On this page: