Split the deployment process to deploy region-by-region
Objetive
Restructure the deployment process, so that each region gets deployed sequentially.
Secondary goals
- Expedite the deployment process by running
terraform init
once and re-use the directory it generated in later invocations. - Evaluate the error rate and error ration after each deployment step and abort the deployment if an increased error rate or ratio is detected.
- Possibly reduce the number of deployment steps per region, e.g. 5%, 20%, 100% (per region).
Notes
- Terraform Workspaces may be an interesting option to deal with multi-region deployments.