terraform-remote-state

Use variable in Terraform remote backend

眉间皱痕 提交于 2020-08-15 12:09:26
问题 # 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

Use variable in Terraform remote backend

[亡魂溺海] 提交于 2020-08-15 12:07:14
问题 # 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

Use variable in Terraform remote backend

瘦欲@ 提交于 2020-08-15 12:07:12
问题 # 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