-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
More options for starting an instance refresh in ASG #16849
Comments
One way you can force an instance refresh is via Tags. I added the following tag to ASG resource and set the instance refresh to be triggered on tags like this.... Now every time the AMI ID is updated via AMI_ID variable, it triggers the refresh automatically. Hope this helps! |
For me instance refresh works on changes to launch templates with these lines:
|
@pascal-hofmann does the above work for you if you change just the ami of the launch template a couple of times? |
Yes, that works for me with just a changed AMI. |
Unfortunately, it doesn't here. I noticed the |
Yes @kwunlyou, even though pascal-hofmann says it's working for them, it doesn't for me. Using the ami_id in a tag, as a workaround that kumaranbsundar also mentioned above, is working fine for me until this is properly fixed. |
What about if i'm using aws_ami to pull in the ami_id dynamically in the autoscaling group. If I run terraform apply and a new ami is pulled and used in the autoscaling group, will it also, trigger the refresh? Do I still need tags? What other kind of triggers exist? I couldn't find more documentation.
|
Any updates on this? I am facing the same issue where a launch_template update is not triggering a refresh |
@carsondoesbusiness the same problem. Have you already found a solution how to fix it? |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
$ terraform -v
Terraform v0.13.4
Affected Resource(s)
Referring to 16678 which was released last night. Is there a way to trigger an instance refresh when the AMI ID changes in the launch template? Is this only triggered when the
launch_template
value changes on theaws_autoscaling_group
resource? Or can it be triggered when the launch template resource changes that theaws_autoscaling_group.launch_template
refers to?Thanks.
References
#16678
The text was updated successfully, but these errors were encountered: