From 47aa1bcf0995a84a2096230e0080c1e5e2dda5fe Mon Sep 17 00:00:00 2001 From: Hamza Date: Wed, 20 Nov 2024 12:41:29 +0100 Subject: [PATCH] =?UTF-8?q?feat(asg):=20=E2=AC=86=EF=B8=8F=20update=20EC2?= =?UTF-8?q?=20instance=20when=20launching=20template=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asg.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/asg.tf b/asg.tf index 1cb53b9..82b82c4 100644 --- a/asg.tf +++ b/asg.tf @@ -10,7 +10,11 @@ resource "aws_autoscaling_group" "main" { launch_template { id = aws_launch_template.main.id - version = "$Latest" + version = aws_launch_template.main.latest_version // explicitly set to latest version + } + + instance_refresh { + strategy = "Rolling" } dynamic "tag" {