Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS CodeBuild Project Environment

Environment is a property of the AWS::CodeBuild::Project resource that specifies the environment for an AWS CodeBuild project.

Syntax

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

JSON

Copy
{ "ComputeType" : String, "EnvironmentVariables" : [ EnvironmentVariables ], "Image" : String, "Type" : String }

YAML

Copy
ComputeType: String EnvironmentVariables: - EnvironmentVariables Image: String Type: String

Properties

ComputeType

The type of compute environment, such as BUILD_GENERAL1_SMALL. The compute type determines the number of CPU cores and memory the build environment uses. For valid values, see the computeType field in the AWS CodeBuild User Guide.

Required: Yes

Type: String

EnvironmentVariables

The environment variables that your builds can use. For more information, see the environmentVariables field in the AWS CodeBuild User Guide.

Required: No

Type: List of AWS CodeBuild Project Environment EnvironmentVariables

Image

The Docker image identifier that the build environment uses. For more information, see the image field in the AWS CodeBuild User Guide.

Required: Yes

Type: String

Type

The type of build environment. For valid values, see the environment-type field in the AWS CodeBuild User Guide.

Required: Yes

Type: String