Switching Over a Blue/Green Deployment
When the green (target) DB system is ready, you can request switchover.
Before switching over, validate the green target DB system. When the switchover request is submitted, the service reevaluates readiness before proceeding. Switchover can interrupt client connections while the service blocks writes on the source DB system and moves the primary endpoint to the target DB system.
Use the Console, a command-line interface, or the REST API to switch over a blue/green deployment.
- Using the Console
- Using the CLI
- Using the REST API, run the SwitchoverBlueGreenDeployment operation.
Using the Console
Switch over a blue/green deployment to make the green target DB system the current DB system.
Do the following to switch over a blue/green deployment:
After a successful switchover, the green target DB system becomes the current DB system for the deployment. The replication channel used for the switchover is automatically deleted. Client applications may need to reconnect after the endpoint handoff. The service does not automatically roll back to the blue source DB system after a successful switchover.
Using the CLI
Use the command-line interface to switch over a blue/green deployment.
This task requires a properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Before switching over, verify that the target DB system is ready and that your application works with the target DB system.
After a successful switchover, the green target DB system becomes the current DB system for the deployment. Client applications may need to reconnect after the endpoint hand off. The replication channel used for the switchover is automatically deleted.