Terraform Init in the Real World

Rather than fully configuring your backend.tf in a file.```

terraform {
backend “gcs” {
bucket = “my-bucket-123”
prefix = “terraform/state”
}

I prefer to use the command line in order avoid polluting the code with any environment specific names.

terraform init \
-backend-config=“bucket=my-bucket-123” \
-backend-config=“prefix=terraform/state