Closed stewartcampbell closed 2 years ago
hi @stewartcampbell - this is because of using the default version and updating the default version. the rough sequence of steps are as follows: 1) Change is detected on LT and therefore version should be updated 2) Default version is now one version behind, update default version
If you want to avoid this, I believe you should be able to set lt_version = "$Latest"
and this will update in one apply (its been a minute but I believe this is the correct route to achieve your outcome). Try it out and let me know
Hi @bryantbiggs. Thanks for the response.
100% works. I totally forgot you could set the version to latest for an ASG LT :)
Thanks again.
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
When I make a change to EC2 userdata, the first plan/apply only updates the LT. I need a second plan/apply to update the ASG. Is this expected? Thanks.
Versions
Terraform v1.0.11 on linux_amd64
Code Snippet to Reproduce
Expected behavior
ASG updates at the same time as LT.
Actual behavior
Requires two updates.