This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::AmplifyGen3::App EnvironmentVariable
An environment variable to set.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
Properties
Comment-
An optional comment describing the environment variable.
Required: No
Type: String
Minimum:
0Maximum:
1024Update requires: No interruption
Key-
The key of the environment variable.
Required: Yes
Type: String
Pattern:
^[a-zA-Z]([a-zA-Z0-9_])*$Minimum:
1Maximum:
128Update requires: No interruption
Scope-
The scope where the environment variable is available. Valid values:
-
ALL: The variable is available to the build and the runtime.
-
BACKEND: The variable is available only to the app's backend, not to the build or the runtime.
The default is ALL.
Required: No
Type: String
Allowed values:
ALL | BACKENDUpdate requires: No interruption
-
Type-
The type of the environment variable. Valid values:
-
PLAINTEXT: The value is returned when you read the variable.
-
SENSITIVE: The value is omitted when you read the variable.
Required: Yes
Type: String
Allowed values:
PLAINTEXT | SENSITIVEUpdate requires: No interruption
-
Value-
The value of the environment variable.
Required: No
Type: String
Minimum:
1Maximum:
4096Update requires: No interruption