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

bake: allow calling env as input var default value #492

Closed
crazy-max opened this issue Dec 23, 2020 · 1 comment
Closed

bake: allow calling env as input var default value #492

crazy-max opened this issue Dec 23, 2020 · 1 comment

Comments

@crazy-max
Copy link
Member

crazy-max commented Dec 23, 2020

Following #192 and specially this code portion, I don't think that's the proper way to handle environment variable as default value because this is obfuscated and not obvious:

variable "TAG" {
  default = ""
}

Instead we should create a function called env to handle that:

variable "tag" {
  default = env("TAG")
}
@crazy-max
Copy link
Member Author

Closed in favor of #541

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

No branches or pull requests

1 participant