-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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 #26796
base: main
Are you sure you want to change the base?
Conversation
636c589
to
89b7177
Compare
Codecov Report
|
2f2c782
to
b686066
Compare
b686066
to
2002e21
Compare
Hi there ! Is this PR relate to specific issues encountered with #26032 ? |
Hello, Yes it does. I worked on the subject prior checking if another PR was already opened... so I launched a discussion thread here about the implementation : #26797 Regards, |
e5f4800
to
39b563b
Compare
39b563b
to
a51ab9e
Compare
Hello, is someone from hashicorp actually looking at this PR and related discussion? |
This would be such a powerful enhancement for Terraform; it would be great if someone from Hashicorp could take a look at the associated PR. |
this would be a really nice addition, please someone have a look |
Hi,
Here is an implementation of HTTP remote backend workspace handling by passing workspace information as query param.
Work was influenced by the lock implementation that pass the LockID information as query parameter on all subsequent requests.
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.
Workspace path handling 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.Regards,