-
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
workspace_key_prefix contains more than one folder #16383
Comments
This is affecting us too, it is stopping us rolling out workspaces to our teams as it is not clear on which workspace a user is on. |
Also affecting us. |
I'm still having this problem with v0.11.3.. Is anyone else? |
@mbowiewilson , @jbardin I can confirm that with TF 0.11.3 this is still not solved. |
@mbowiewilson, @redbaron: If you have a reproducible case, please feel free to open a new issue and we can look into it. Thanks! |
@jbardin IMHO it is better to have this issue reopened as problem described here is not solved. My reproducible test case is like for like with one reported here , with slight variation to actual values used:
|
While the issue may look superficially similar, I'd rather have a new issue open if the underlying cause if different. Can you provide the steps required to reproduce an issue with your configuration? What you have here should work as expected. Using your configuration:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hello,
Seems like terraform isn't able to handle workspace_key_prefix which contains more than one word like:
workspace_key_prefix = "rds-test/rds-logs-download"
Actually it is able to create workspace and put terraform state file into needed path, but doesn't show it when you execute:
terraform workspace list
Initial task is to put state files of all workspaces inside sub-folder into main bucket like /BUCKET/SUB-folder1/SUB-folder2/WORKSPACE-NAME/terraform.tfstate, so I have used following backend configuratin:
Expected Behavior
According to documentation at https://www.terraform.io/docs/backends/types/s3.html#key path should be following:
XXXXXX-terraform/rds-test/rds-logs-download/<WORKSPACE_NAME>/rds-logs-download.tfstate
Actual Behavior
While it DOES create structure inside S3 backet:
aws s3 ls XXXXXXXXX-terraform/rds-test/rds-logs-download/test
PRE test2/
PRE test3/
Steps to Reproduce
Just try to use backend as was provided above and create few workspaces.
terraform version
Terraform v0.10.7
The text was updated successfully, but these errors were encountered: