AWS::CodeBuild::Project Source - AWS CloudFormation (original) (raw)

Source is a property of the AWS::CodeBuild::Project resource that specifies the source code settings for the project, such as the source code's repository type and location.

Syntax

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

Properties

Auth

Information about the authorization settings for AWS CodeBuild to access the source code to be built.

Required: No

Type: SourceAuth

Update requires: No interruption

BuildSpec

The build specification for the project. If this value is not provided, then the source code must contain a buildspec file named buildspec.yml at the root level. If this value is provided, it can be either a single string containing the entire build specification, or the path to an alternate buildspec file relative to the value of the built-in environment variable CODEBUILD_SRC_DIR. The alternate buildspec file can have a name other than buildspec.yml, for example myspec.yml or build_spec_qa.yml or similar. For more information, see the Build Spec Reference in the AWS CodeBuild User Guide.

Required: No

Type: String

Update requires: No interruption

BuildStatusConfig

Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider isGITHUB, GITHUB_ENTERPRISE, orBITBUCKET.

Required: No

Type: BuildStatusConfig

Update requires: No interruption

GitCloneDepth

The depth of history to download. Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build project. If your source type is Amazon S3, this value is not supported.

Required: No

Type: Integer

Minimum: 0

Update requires: No interruption

GitSubmodulesConfig

Information about the Git submodules configuration for the build project.

Required: No

Type: GitSubmodulesConfig

Update requires: No interruption

InsecureSsl

This is used with GitHub Enterprise only. Set to true to ignore SSL warnings while connecting to your GitHub Enterprise project repository. The default value is false. InsecureSsl should be used for testing purposes only. It should not be used in a production environment.

Required: No

Type: Boolean

Update requires: No interruption

Location

Information about the location of the source code to be built. Valid values include:

If you specify CODEPIPELINE for the Type property, don't specify this property. For all of the other types, you must specify Location.

Required: No

Type: String

Update requires: No interruption

ReportBuildStatus

Set to true to report the status of a build's start and finish to your source provider. This option is valid only when your source provider is GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket. If this is set and you use a different source provider, an invalidInputException is thrown.

Required: No

Type: Boolean

Update requires: No interruption

SourceIdentifier

An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.

Required: No

Type: String

Update requires: No interruption

Type

The type of repository that contains the source code to be built. Valid values include:

Required: Yes

Type: String

Allowed values: CODECOMMIT | CODEPIPELINE | GITHUB | GITLAB | GITLAB_SELF_MANAGED | S3 | BITBUCKET | GITHUB_ENTERPRISE | NO_SOURCE

Update requires: No interruption