-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Interpolate variables in terraform backend config #12270
Comments
This isn't allowed and beta 2 will properly give you an error message. Rather than re-explain, I'll link you to the PR with the discussion we had! #12067 We do want you to be able to parameterize backends but for now that'll be restricted to partial configs with |
Thank you. I didn't realize there was a previous discussion on this topic. I actually looked before opening this issue too. General feedback: Also, given the argument name I initially assumed |
@roderickrandolph That's a good point. The reason we did away with K/V was that it left data in your CLI history, but I can see how it is much easier than the file-based approach. Let me think about it a bit. Thanks! |
@roderickrandolph what's the better UX alternative for this? I ran into this problem trying to store state files of k8s cluster in Artifactory so that Jenkins pipeline can create clusters on demand. |
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. |
Terraform Version
Terraform v0.9.0-beta1
Affected Resource(s)
core
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
Terraform will interpolate all variables provided in the backend configuration (i.e.
${var.aws_region}
and${var.stack_name}
)Actual Behavior
Terraform treats
${var.stack_name}
and${var.aws_region}
as literal strings causing a terraform plan/apply to fail.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform init
terraform plan
The text was updated successfully, but these errors were encountered: