Choose where Terraform state lives, independent of the target cloud.
What it does
- Supports
backend.type=s3|gcs|azurermfor any provider. - Allows
backend.profilefor cross-account S3,regionoverride, and container/resource_group for azurerm. - Ensures the backend bucket/container exists before running Terraform.
Example
Notes
- Backends are rendered into
backend.tf/terraform.tfvarsalongside providers. - You can point all clouds to a single backend (e.g., S3) if desired.