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
{ "Certificate" :String, "ComputeType" :String, "EnvironmentVariables" : [EnvironmentVariable], "Image" :String, "PrivilegedMode" :Boolean, "Type" :String}
YAML
Certificate:StringComputeType:StringEnvironmentVariables: - EnvironmentVariable Image:StringPrivilegedMode:BooleanType:String
Properties
Certificate-
The certificate to use with the build project.
Required: No
Type: String
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 thecomputeTypefield in the AWS CodeBuild User Guide.Required: Yes
Type: String
EnvironmentVariables-
The environment variables that your builds can use. For more information, see the
environmentVariablesfield in the AWS CodeBuild User Guide.Required: No
Type: List of AWS CodeBuild Project EnvironmentVariable
Image-
The Docker image identifier that the build environment uses. For more information, see the
imagefield in the AWS CodeBuild User Guide.Required: Yes
Type: String
PrivilegedMode-
Indicates how the project builds Docker images. Specify
trueto enable running the Docker daemon inside a Docker container.This value must be set to
trueonly if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. For more information, see theprivilegedModefield in the AWS CodeBuild User Guide.Required: No
Type: Boolean
Type-
The type of build environment. For valid values, see the
environment-typefield in the AWS CodeBuild User Guide.Required: Yes
Type: String
