Managing a Blue/Green Deployment

You can edit, move, or delete a blue/green deployment.

Use the Console, a command-line interface, or the REST API to manage a blue/green deployment.

Using the Console

Edit, move, or delete a blue/green deployment using the Console.

Management operations apply to the blue/green deployment. They do not update, move, or delete the source DB system, target DB system, replication channel, backups, storage, networking, or customer data.
Do the following to edit, move, or delete a blue/green deployment:
  1. On the Blue/green deployments list page, select the blue/green deployment that you want to manage. See Listing Blue/Green Deployments.
  2. To update the deployment name or tags, select Edit.
    You can update the display name, free-form tags, and defined tags of the blue/green deployment. These updates apply only to the deployment.
  3. To move the deployment to another compartment, select Move resource.
    Only the blue/green deployment is moved. The source DB system, target DB system, and replication channel remain in their existing compartments.
  4. To delete the deployment, select Delete.
    If you delete the deployment before the switchover started, only the blue/green deployment is deleted. The source DB system, target DB system, replication channel, backups, storage, networking, and customer data are retained.
    If you delete the deployment after the switchover completed, the blue/green deployment along with the replicated channel used to complete the switchover are deleted. The source DB system, target DB system, backups, storage, networking, and customer data are retained.

Using the CLI

Use the command-line interface to edit, move, or delete a blue/green deployment.

This task requires a properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Management operations apply to the blue/green deployment. They do not update, move, or delete the source DB system, target DB system, replication channel, backups, storage, networking, or customer data.
  1. To update the deployment name or tags, run the following command:
    oci mysql blue-green-deployment update 
        --blue-green-deployment-id <BlueGreenDeploymentOCID>
        --display-name <DisplayName>
  2. To move the deployment to another compartment, run the following command:
    oci mysql blue-green-deployment change-compartment 
        --blue-green-deployment-id <BlueGreenDeploymentOCID>
        --compartment-id <CompartmentOCID>
  3. To delete the deployment, run the following command:
    oci mysql blue-green-deployment delete 
        --blue-green-deployment-id <BlueGreenDeploymentOCID>