-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'workspaces not supported' error #148
Comments
Huh, didn't realize some backends don't support workspaces. Looks like you already have debug logging on, which Terraform command is actually failing? I'm guessing |
Yeah, it's |
Having the same issue when trying to use Terraform Cloud for backend |
Looks like the Terraform remote (Cloud) backend does support workspaces, but it returns "not supported" if the |
@ljfranklin It didn't work. I already had a name configured for the workspace, so adding prefix resulted in the following error.
Here's the basic config I've been using for testing
I know that both TF and TFC have workspaces, but they are slightly different concepts.
|
Right, but the Terraform Cloud backend does support the CLI concept of workspaces, i.e. store the statefile remotely. It should work if you drop |
Hi @ljfranklin ,
Pipeline was:
Looking at the files generated on the container for the
and
which might explain why it's throwing an error. I'll dig in the code and will let you know what I find. |
Hi, is there any plan to support backends that do not provide workspaces ? I'm encountering the same issue https://www.terraform.io/language/settings/backends/http It seems there are more and more platforms offering Terraform HTTP backends. It would be great to have it supported into this Concourse resource. |
There's an open issue on Terraform to support workspaces in the HTTP backend: hashicorp/terraform#26797. There's also two open draft PRs to add that functionality although they haven't been updated in a while. Trying to work around this limitation in the resource doesn't feel like the right technical solution. I'd rather folks either contribute effort towards getting the HTTP workspace support merged or use a more well-maintained backend type other than HTTP. |
Hello @ljfranklin :) The problem is that right now, it makes the resource unusable with Gitlab/Artifaktory/whoever Terraform Backend or all others services that implemented the Terraform Backend according to the specs available in Terraform documentation. I agree that would be really better for hashicorp to handle it, but that also means we could wait for years to have that supported :( |
I use an Artifactory backend and when I specify source.env_name or put.params.env_name, I get a
workspaces not supported
error (which might be fine, because they're not for that backend). But I can't leave them (or the other two options) out because one of the four is required. Using 'default' (which I've seen suggested elsewhere) doesn't seem to help either.Sanitized backend resource:
Thanks for any input you can provide!
The text was updated successfully, but these errors were encountered: