Deployment Modes

The infrastructure supports three deployment modes controlled by the dr variable:

Mode DR Value Purpose
Standalone "" (empty) Single cluster, no DR infrastructure. Suitable for development, testing, or production environments that do not require cross-cluster failover
DR-ready primary "active" Primary cluster in a DR pair. Identical deployment steps to standalone, but the tfvars include Global DNS configuration and a secondary_remote_state_config block for cross-cluster state sharing

Note

DR standby cluster: If you need to deploy a standby (secondary) cluster for disaster recovery, complete the deployment guide first to deploy your primary cluster.

When dr="" (standalone), all DR-related modules (global-dns, dr-failover-function, and remote state) are skipped. The cluster deploys identically to the original single-cluster architecture.