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

terraform, aws: simplify resource tagging by using aws provider's default_tags #4744

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

consideRatio
Copy link
Contributor

@consideRatio consideRatio commented Sep 6, 2024

It turns out that instead of using var.tags and setting that explicitly on all resources, we can use default_tags on the aws provider thingy in main.tf instead. This also enabled referencing var.tags and replacing patterns like {var_cluster_name}, which made it easy to declare a default value involving a cluster name.

This turned out perfect and is a robust solution to #4711 with regards to non-hub-specific tags at least.

Only one resource (a budget plan) wasn't already tagged explicitly and could be tagged thanks to default_tags.

@consideRatio consideRatio merged commit 28d58cd into 2i2c-org:main Sep 6, 2024
3 checks passed
@consideRatio consideRatio self-assigned this Sep 6, 2024
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

Successfully merging this pull request may close these issues.

1 participant