From ab594eee118ad3cae0e29c8d838c77c3d5e2a7c1 Mon Sep 17 00:00:00 2001 From: Brad Durrow Date: Mon, 27 Dec 2021 09:14:30 -0700 Subject: [PATCH] Ignore changes to aws_autoscaling_group.ecs_nodes desired_capacity Right now when the ASG scales we see this in subsequent refreshes ``` # module.jetbrains_ecs_cluster.aws_autoscaling_group.ecs_nodes has changed ~ resource "aws_autoscaling_group" "ecs_nodes" { ~ desired_capacity = 0 -> 2 id = "CLUSTER_NODES_20211227012035340600000002" name = "CLUSTER_NODES_20211227012035340600000002" # (22 unchanged attributes hidden) # (2 unchanged blocks hidden) } ``` --- asg.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/asg.tf b/asg.tf index 6acd8f6..94e4fbf 100644 --- a/asg.tf +++ b/asg.tf @@ -42,6 +42,7 @@ resource "aws_autoscaling_group" "ecs_nodes" { lifecycle { create_before_destroy = true + ignore_changes = [ "desired_capacity" ] } tag {