terraform init -backend-config=backend.tfbackend

Category: IaC & Automation

terraform init -backend-config=backend.tfbackend

Initialize using settings from a backend config file

Merges the given tfbackend file into the backend configuration, a common way to point at remote state storage without hardcoding bucket names or credentials. The backend (where state is stored) is declared in configuration, while this file supplies environment-specific values. Related: terraform init, terraform state list.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.