Skip to content

Commit be0ea26

Browse files
authored
fix(terraform): ignore ami changes in EC2 lifecycle (#2249)
1 parent f1410c8 commit be0ea26

File tree

1 file changed

+4
-0
lines changed
  • infra/aggregation_mode/terraform/modules/ec2

1 file changed

+4
-0
lines changed

infra/aggregation_mode/terraform/modules/ec2/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ resource "aws_instance" "this" {
9595
var.ec2_tags
9696
)
9797

98+
lifecycle {
99+
ignore_changes = [ami]
100+
}
101+
98102
root_block_device {
99103
volume_size = var.ec2_root_volume_size
100104
}

0 commit comments

Comments
 (0)