EnvironmentVariable
Information about an environment variable for a build project or a build.
Contents
In the following list, the required parameters are described first.
- name
-
The name or key of the environment variable.
Type: String
Length Constraints: Minimum length of 1.
Required: Yes
- value
-
The value of the environment variable.
Important We strongly discourage the use of
PLAINTEXT
environment variables to store sensitive values, especially AWS secret key IDs and secret access keys.PLAINTEXT
environment variables can be displayed in plain text using the AWS CodeBuild console and the AWS CLI. For sensitive values, we recommend you use an environment variable of typePARAMETER_STORE
orSECRETS_MANAGER
.Type: String
Required: Yes
- type
-
The type of environment variable. Valid values include:
-
PARAMETER_STORE
: An environment variable stored in Systems Manager Parameter Store. To learn how to specify a parameter store environment variable, see env/parameter-store in the AWS CodeBuild User Guide. -
PLAINTEXT
: An environment variable in plain text format. This is the default value. -
SECRETS_MANAGER
: An environment variable stored in AWS Secrets Manager. To learn how to specify a secrets manager environment variable, see env/secrets-manager in the AWS CodeBuild User Guide.
Type: String
Valid Values:
PLAINTEXT | PARAMETER_STORE | SECRETS_MANAGER
Required: No
-
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: