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::RDS::Deployment
Creates a blue/green deployment.
A blue/green deployment creates a staging environment that copies the production environment. In a blue/green deployment, the blue environment is the current production environment. The green environment is the staging environment, and it stays in sync with the current production environment.
You can make changes to the databases in the green environment without affecting production workloads. For example, you can upgrade the major or minor DB engine version, change database parameters, or make schema changes in the staging environment. You can thoroughly test changes in the green environment. When ready, you can switch over the environments to promote the green environment to be the new production environment. The switchover typically takes under a minute.
For more information, see Using Amazon RDS Blue/Green Deployments for database updates in the Amazon RDS User Guide and Using Amazon RDS Blue/Green Deployments for database updates in the Amazon Aurora User Guide.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::RDS::Deployment", "Properties" : { "BlueGreenDeploymentName" :String, "Source" :String, "Tags" :[ Tag, ... ], "TargetAllocatedStorage" :Integer, "TargetDBClusterParameterGroupName" :String, "TargetDBInstanceClass" :String, "TargetDBParameterGroupName" :String, "TargetEngineVersion" :String, "TargetIops" :Integer, "TargetStorageThroughput" :Integer, "TargetStorageType" :String, "UpgradeTargetStorageConfig" :Boolean} }
YAML
Type: AWS::RDS::Deployment Properties: BlueGreenDeploymentName:StringSource:StringTags:- TagTargetAllocatedStorage:IntegerTargetDBClusterParameterGroupName:StringTargetDBInstanceClass:StringTargetDBParameterGroupName:StringTargetEngineVersion:StringTargetIops:IntegerTargetStorageThroughput:IntegerTargetStorageType:StringUpgradeTargetStorageConfig:Boolean
Properties
BlueGreenDeploymentName-
The user-supplied name of the blue/green deployment.
Required: Yes
Type: String
Pattern:
^[a-zA-Z](?:-?[a-zA-Z0-9]+)*$Minimum:
1Maximum:
60Update requires: Replacement
Source-
The source database for the blue/green deployment.
Before switchover, the source database is the production database in the blue environment.
Required: Yes
Type: String
Pattern:
^arn:[A-Za-z][0-9A-Za-z-:._]*$Minimum:
1Maximum:
2048Update requires: Replacement
Property description not available.
Required: No
Type: Array of Tag
Update requires: No interruption
TargetAllocatedStorageProperty description not available.
Required: No
Type: Integer
Update requires: Replacement
TargetDBClusterParameterGroupNameProperty description not available.
Required: No
Type: String
Pattern:
^[A-Za-z](?!.*--)[0-9A-Za-z-]*[^-]|^default(?!.*--)(?!.*\.\.)[0-9A-Za-z-.]*[^-]$Minimum:
1Maximum:
255Update requires: Replacement
TargetDBInstanceClassProperty description not available.
Required: No
Type: String
Pattern:
^db\.[0-9a-z]{2,6}\.[0-9a-z]{4,9}$Minimum:
5Maximum:
20Update requires: Replacement
TargetDBParameterGroupNameProperty description not available.
Required: No
Type: String
Pattern:
^[A-Za-z](?!.*--)[0-9A-Za-z-]*[^-]|^default(?!.*--)(?!.*\.\.)[0-9A-Za-z-.]*[^-]$Minimum:
1Maximum:
255Update requires: Replacement
TargetEngineVersionProperty description not available.
Required: No
Type: String
Pattern:
^[0-9A-Za-z-_.]+$Minimum:
1Maximum:
64Update requires: Replacement
TargetIopsProperty description not available.
Required: No
Type: Integer
Update requires: Replacement
TargetStorageThroughputProperty description not available.
Required: No
Type: Integer
Update requires: Replacement
TargetStorageTypeProperty description not available.
Required: No
Type: String
Update requires: Replacement
UpgradeTargetStorageConfigProperty description not available.
Required: No
Type: Boolean
Update requires: Replacement
Return values
Ref
Fn::GetAtt
ArnProperty description not available.
BlueGreenDeploymentIdentifier-
The unique identifier of the blue/green deployment.
CreateTime-
The time when the blue/green deployment was created, in Universal Coordinated Time (UTC).
Status-
The status of the blue/green deployment.
Valid Values:
-
PROVISIONING- Resources are being created in the green environment. -
AVAILABLE- Resources are available in the green environment. -
SWITCHOVER_IN_PROGRESS- The deployment is being switched from the blue environment to the green environment. -
SWITCHOVER_COMPLETED- Switchover from the blue environment to the green environment is complete. -
INVALID_CONFIGURATION- Resources in the green environment are invalid, so switchover isn't possible. -
SWITCHOVER_FAILED- Switchover was attempted but failed. -
DELETING- The blue/green deployment is being deleted.
-
SwitchoverDetails-
The details about each source and target resource in the blue/green deployment.
Target-
The target database for the blue/green deployment.
Before switchover, the target database is the clone database in the green environment.
Tasks-
Either tasks to be performed or tasks that have been completed on the target database before switchover.