Skip to content
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

Allow configurable keyEnvPrefix #13184

Closed
voltechs opened this issue Mar 29, 2017 · 2 comments · Fixed by #15370
Closed

Allow configurable keyEnvPrefix #13184

voltechs opened this issue Mar 29, 2017 · 2 comments · Fixed by #15370

Comments

@voltechs
Copy link

voltechs commented Mar 29, 2017

Terraform Version

0.9.2

Affected Resource(s)

remote state backend (s3)

Terraform Configuration Files

terraform {
	required_version = ">= 0.9.2"
	backend "s3" {
		bucket = "platform-infrastructure"
		key = "environments/alpha/master.tfstate"
		region = "us-west-2"
	}
}

Expected Behavior

I expect not to be forced into some hand-held path by a tool (terraform) for advanced users (anybody who uses terraform).

Read: let me configure keyEnvPrefix. I've already created my own bucket, and nested my environment files under /environments/{environment}/master.tfstate

Actual Behavior

My states are stored and pulled from `platform-infrastructure/env:/alpha/environments/alpha/master.tfstate

The first alpha originating from terraform env, and the second alpha comes from my own (legacy) namespacing. (We're migrating from self-managed environments to TF managed)

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Try to use terraform with an S3 backend
@gmetzker
Copy link

I agree. This would be nice if there was more flexibility with how this key prefix works when using multiple environments.

@ghost
Copy link

ghost commented Apr 8, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants