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 setting environment variables to see things like default tags #665

Closed
nitrocode opened this issue Aug 9, 2024 · 1 comment
Closed

Comments

@nitrocode
Copy link
Member

Describe the Feature

It would be nice to set env vars for each run so we can take advantage of unsupported TF input vars.

e.g.

TF_AWS_DEFAULT_TAGS_<tag_name>=<tag_value>

https://github.com/hashicorp/terraform-provider-aws/releases/tag/v5.62.0

See hashicorp/terraform-provider-aws#33339

Technically this feature request could be simply to add support for specifically env var for adding tags to default tags but id prefer being able to add arbitrary env vars instead. That way atmos will always be able to support the next terraform env var feature.

Expected Behavior

Yaml env vars to control terraform behavior

Use Case

Id like to set my env vars to match the following

env:
  TF_AWS_DEFAULT_TAGS_repo: org/repo
  TF_AWS_DEFAULT_TAGS_dir: {{ atmos.component }}

Describe Ideal Solution

See above

Alternatives Considered

No response

Additional Context

No response

@nitrocode
Copy link
Member Author

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