-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
improvement: Tags passed into worker groups should also be excluded from Launch Template tag specification #1095
Conversation
…oups or worker_groups_launch_template so that propagate_at_launch can be tweeked for a particular key.
workers_launch_template.tf
Outdated
var.tags, | ||
{ for tag_key, tag_value in var.tags : | ||
tag_key => tag_value | ||
if ! contains([for tag in lookup(var.worker_groups_launch_template[count.index], "tags", local.workers_group_defaults["tags"]) : tag["key"]], tag_key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please exclude the tag Name
also, like you already did for ASG ? It's more about consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review, Yep, I've added this now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @huddy.
v13.2.1 is now released |
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
I recently raised #1092 which allows us to overide tags on the asg and set
propagate_at_launch
tofalse
to prevent instances from getting the tag.This works well for launch configuration, but for launch templates we also currently pass in
tag_specification
for instances which then negates the point of #1092This PR therefore adds a feature to exclude any tags on the tag specification for instances on the launch templates, that are passed in via worker groups config.
This means we can control if a tag makes it to instance from the ASG or not without the tag specification interfering and the ASG tags become the source of truth for propagation only if they are passed in with worker groups.
Checklist