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::SageMaker::CodeRepository GitConfig

Specifies configuration details for a Git repository in your AWS account.


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


{ "Branch" : String, "RepositoryUrl" : String, "SecretArn" : String }


Branch: String RepositoryUrl: String SecretArn: String



The default branch for the Git repository.

Required: No

Type: String

Minimum: 1

Maximum: 1024

Pattern: [^ ~^:?*\[]+

Update requires: Replacement


The URL where the Git repository is located.

Required: Yes

Type: String

Pattern: ^https://([^/]+)/?(.*)$

Update requires: Replacement


The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format:

{"username": UserName, "password": Password}

Required: No

Type: String

Minimum: 1

Maximum: 2048

Pattern: arn:aws[a-z\-]*:secretsmanager:[a-z0-9\-]*:[0-9]{12}:secret:.*

Update requires: No interruption

On this page: