I have main.tf:
terraform {
backend "remote" {
organization = "myorg"
workspaces {
name = "some-workspace-like-so"
}
}
}
Ran terraform init successfully. However if I then run terraform workspace list to see other workspaces in my organization I get the error workspaces not supported. Is this an org setting, a configuration issue, me misunderstanding how the command is supposed to work, something else?
Try using the workspaces block's prefix parameter rather than its name argument to handle the several TFC workplaces.
terraform {
backend "remote" {
hostname = "app.terraform.io"
organization = "org"
workspaces {
prefix = "my-infra"
}
}
}
Reference: https://github.com/hashicorp/terraform/issues/22802 by saitotqr
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With