Skip to content

Create Blue Green Deployment

rds_create_blue_green_deployment R Documentation

Creates a blue/green deployment

Description

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. The staging environment stays in sync with the current production environment using logical replication.

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.

Usage

rds_create_blue_green_deployment(BlueGreenDeploymentName, Source,
  TargetEngineVersion, TargetDBParameterGroupName,
  TargetDBClusterParameterGroupName, Tags, TargetDBInstanceClass,
  UpgradeTargetStorageConfig)

Arguments

BlueGreenDeploymentName

[required] The name of the blue/green deployment.

Constraints:

  • Can't be the same as an existing blue/green deployment name in the same account and Amazon Web Services Region.

Source

[required] The Amazon Resource Name (ARN) of the source production database.

Specify the database that you want to clone. The blue/green deployment creates this database in the green environment. You can make updates to the database in the green environment, such as an engine version upgrade. When you are ready, you can switch the database in the green environment to be the production database.

TargetEngineVersion

The engine version of the database in the green environment.

Specify the engine version to upgrade to in the green environment.

TargetDBParameterGroupName

The DB parameter group associated with the DB instance in the green environment.

To test parameter changes, specify a DB parameter group that is different from the one associated with the source DB instance.

TargetDBClusterParameterGroupName

The DB cluster parameter group associated with the Aurora DB cluster in the green environment.

To test parameter changes, specify a DB cluster parameter group that is different from the one associated with the source DB cluster.

Tags

Tags to assign to the blue/green deployment.

TargetDBInstanceClass

Specify the DB instance class for the databases in the green environment.

This parameter only applies to RDS DB instances, because DB instances within an Aurora DB cluster can have multiple different instance classes. If you're creating a blue/green deployment from an Aurora DB cluster, don't specify this parameter. After the green environment is created, you can individually modify the instance classes of the DB instances within the green DB cluster.

UpgradeTargetStorageConfig

Whether to upgrade the storage file system configuration on the green database. This option migrates the green DB instance from the older 32-bit file system to the preferred configuration. For more information, see Upgrading the storage file system for a DB instance.

Value

A list with the following syntax:

list(
  BlueGreenDeployment = list(
    BlueGreenDeploymentIdentifier = "string",
    BlueGreenDeploymentName = "string",
    Source = "string",
    Target = "string",
    SwitchoverDetails = list(
      list(
        SourceMember = "string",
        TargetMember = "string",
        Status = "string"
      )
    ),
    Tasks = list(
      list(
        Name = "string",
        Status = "string"
      )
    ),
    Status = "string",
    StatusDetails = "string",
    CreateTime = as.POSIXct(
      "2015-01-01"
    ),
    DeleteTime = as.POSIXct(
      "2015-01-01"
    ),
    TagList = list(
      list(
        Key = "string",
        Value = "string"
      )
    )
  )
)

Request syntax

svc$create_blue_green_deployment(
  BlueGreenDeploymentName = "string",
  Source = "string",
  TargetEngineVersion = "string",
  TargetDBParameterGroupName = "string",
  TargetDBClusterParameterGroupName = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  TargetDBInstanceClass = "string",
  UpgradeTargetStorageConfig = TRUE|FALSE
)