Hi
How do I get the value of terraform.workspce when running on terraform-cloud?
My environment is vcs linking terraform-cloud and GitHub, but when I execute “terraform plan” in terraform-cloud, the string “default” is entered instead of the workspace name created on terraform-cloud. It will be.
In the following example, it will be “test-default”.
default_tags {
tags = {
Environment = "test-$ {terraform.workspace}"
}
It has been confirmed that it works normally when “terraform plan” is executed after executing terraform workspace new “workspace name” on the server.
How can I ensure that terraform-cloud references the correct workspace name?