Use variable in Terraform remote backend
问题 # Using a single workspace: terraform { backend "remote" { hostname = "app.terraform.io" organization = "company" workspaces { name = "my-app-prod" } } } For Terraform remote backend, would there be a way to use variable to specify the organization / workspace name instead of the hardcoded values there? The Terraform documentation didn't seem to mention anything related either. 回答1: The backend configuration documentation goes into this in some detail. The main point to note is this: Only one