Choose where Terraform state lives, aligned with the provider.
What it does
- Supports
backend.type=s3|gcs|azurermwith provider compatibility (AWS → S3, GCP → GCS, Azure → Azurerm). - 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. - If
backend.typeis omitted, pltf picks the default backend for the provider.