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

Feature request: add new cli option, like "-var-file" but with file interpolation #12952

Open
vazhnov opened this issue Mar 22, 2017 · 1 comment

Comments

@vazhnov
Copy link

vazhnov commented Mar 22, 2017

Hi, Terraform team!

I think it should be useful to have option like "-var-file" but with interpolation of file with variables.
My use case — store various AWS credentials for multiple application, I have to substitute credentials inside apps options. It will be good to store secrets in one file and substitute them in another files.

Var file example:
env_vars = ["JAVA_OPTS", "-Xmx6G -DAWS_ACCESS_KEY_ID=${var.api.aws_key} -DAWS_SECRET_KEY=${var.api.aws_secret}"]

Workaround: https://github.com/jonatanblue/terraform-environment-secrets

@vazhnov
Copy link
Author

vazhnov commented Mar 22, 2017

Related problem: #4084

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants