-
-
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
fix: set an ASG's launch template version to an explicit version to automatically trigger instance refresh #1370
fix: set an ASG's launch template version to an explicit version to automatically trigger instance refresh #1370
Conversation
@bashims can you please rebase your branch from master. |
automatically. This will ensure that an instance refresh will be triggered whenever the launch template changes.
4641c6c
to
fb61961
Compare
@barryib rebased |
the aws_autoscaling_lifecycle_hook.
default launch_template version. Signed-off-by: Benjamin Ash <[email protected]>
604fb9a
to
0cdc35d
Compare
Thanks again @bashims for your great work. |
@barryib do you think you might be able to include this fix in a patch release today? |
Yep. I'll do that tonight. |
v16.1.0 is released. |
…utomatically trigger instance refresh (terraform-aws-modules#1370) NOTES: Set an ASG's launch template version to an explicit version automatically. This will ensure that an instance refresh will be triggered whenever the launch template changes. The default `launch_template_version` is now used to determine the latest or default version of the created launch template for self-managed worker groups. Signed-off-by: Benjamin Ash <[email protected]> Co-authored-by: Thierno IB. BARRY <[email protected]>
…utomatically trigger instance refresh (terraform-aws-modules#1370) NOTES: Set an ASG's launch template version to an explicit version automatically. This will ensure that an instance refresh will be triggered whenever the launch template changes. The default `launch_template_version` is now used to determine the latest or default version of the created launch template for self-managed worker groups. Signed-off-by: Benjamin Ash <[email protected]> Co-authored-by: Thierno IB. BARRY <[email protected]>
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. |
Set an ASG's launch template version to an explicit version automatically. This will ensure that an instance refresh will be
triggered whenever the launch template changes.
PR o'clock
Description
In order to properly trigger instance refresh whenever a launch template is modified the version of the template must be updated in the autoscaling group. Previous versions of this module only supported setting the template version manually. This PR adds a new feature that will either set the version to the latest (real) version or the default (real) version with the use of the boolean
use_latest_version
. It is still possible to pin a specific version of template by settinglaunch_template_version
inworker_groups_launch_template
. The defaultlaunch_template_version
is ignored in the case of autoscaling group launch template, however it is preserved for thenode_group
case.This PR also adds the ability to optionally update the default version for any autoscaling group launch template.
Fixes: #1365 #1315 #1293
Checklist