-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Add workspaces support to HTTP backend #26797
Comments
Thanks for submitting this proposal @lenaing I just wanted to chime in here that we are currently in the rundown to our What that means here is that we can't promise any focused attention for the next 4-6 weeks. It doesn't mean you won't get any, but rather I just wanted to make sure that it didn't look like we were ignoring your work here while our focus is elsewhere. We very much appreciate you taking the time to offer a proposal for discussion here. |
Is there anything the community can assist with that relates to this issue, @pkolyvas? |
Anyone from hashicorp here ? |
Are there any plans to review the 2 related PRs and propose a support for workspaces for the http backend any time soon? All of this was proposed in Aug-Nov 2020, we are more than a year later. At the very least, can you give us some official light on the subject. Thanks in advance. |
With Gitlab supporting Gitlab-hosted state files, it's only available with an http backend. So workspaces is a no-go currently and we have to choose between keeping S3 or changing our codebase to remove all references to workspaces. Would really prefer to use Gitlab state files without needing to change our pipelines and our codebase. |
I'm in the exact same situation as @quixoticotech . Workspaces support for the http backend is a must. |
The same issue with gitlab, we can't use workspaces without support for http backend |
Any traction on this? We currently write our own custom module registry and would like to do the same for state storage; however, not being able to use work spaces is not an option for us. I would be glad to help support this in any way including writing code for this support and supporting it. The fact that the contributors guide states that no new backends will be accepted, and there is no backend that doesn't require remote execution that supports workspaces is a real bummer. |
AFAICS, HTTP Backend is currently maintained by Terraform Core. @lenaing Is your PR still functional? Support for Workspaces using the HTTP Backend would be great. |
Hello there. Just rebased from Edit: From Terraform v0.14.0-dev to Terraform v1.4.0-dev ✨🎉! Kind regards, |
Surely HTTP backend is popular enough to warrant workspace support? Who can we @? |
Guess not! |
This problem became more actual because of the latest changes in some cloud services plans. |
Just want to add that I've been forced recently to switch from S3 backend to an http backend and the lack of workspaces makes my life much much more painful :( |
After 4 years, is there any plan to solve this issue? Any roadmap? |
Hello,
Current Terraform Version
Use-cases
Let the HTTP backend support workspaces
Attempted Solutions
Adding a new URL parameters and use
OPTIONS
andDELETE
HTTP methods to call remote HTTP endpoint to handle workspaces.Proposal
Here is another take to HTTP remote backend workspace handling by passing workspace information as query param.
I worked on this prior viewing #26032 .
Nevertheless, this version was influenced by the lock implementation that pass the LockID information as query parameter on all subsequent requests.
Therefore, this version passes the workspace also as query parameter to all operations if workspace is not the default one, enabling the remote HTTP endpoint to act accordingly with minimal user configuration:
No need to specify a workspace
path
parameter, implementation is left to the remote HTTP endpoint.If
workspaces_address
is enabled, Terraform act as if workspaces are enabled and will:OPTIONS
HTTP method to list current workspaces.DELETE
HTTP method to remove a workspace.If
workspaces_address
is not enabled, workspace are disabled.A simple backend configuration could then be:
Also, workspaces handling can be enabled on default address through the
workspaces
setting.My draft pull request can be found here : #26796
References
I opened this issue so that we can discuss as suggested in the contribute guide
The text was updated successfully, but these errors were encountered: