Skip to content

ezgh databases blue-green create

Start a blue/green deployment.

Updated View as Markdown
ezgh databases blue-green create <database> --target-engine-version v [--target-instance-type t] [--switchover-timeout n] [--wait] [flags]

Copy a database (blue) to green, on a newer engine version and optionally a new instance type. Green is kept in step with blue and has its own endpoint to test against. A switchover then makes green the database, at blue’s endpoint. It’s refused, with each reason, when the database can’t be copied. --wait waits until green is ready and prints the deployment.

Part of ezgh databases blue-green.

Examples

ezgh databases blue-green create orders --target-engine-version 18 --wait

Flags

Flag Type Default Description
--switchover-timeout int seconds a switchover may take before it gives up and leaves blue as it was, 60 to 3600 (default 300)
--target-engine-version string the version green runs
--target-instance-type string green’s instance type (default the database’s)
--wait boolean wait until green is ready, and print the deployment then
--wait-timeout duration 10m0s how long --wait waits

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close