Backend Remote: TFC and TFE
Here’s an example with the TFC or TFE remote backend.
config/terraform/backend.tf:
terraform {
backend "remote" {
organization = "ORG"
workspaces {
name = "<%= expansion(':MOD_NAME-:ENV-:REGION-:INSTANCE') %>"
}
}
Here’s an expanded example:
terraform {
backend "remote" {
organization = "boltops"
workspaces {
name = "demo-dev-us-west-2"
}
}