Skip to content

Commit

Permalink
Ignore changes to aws_autoscaling_group.ecs_nodes desired_capacity
Browse files Browse the repository at this point in the history
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)
    }
```
  • Loading branch information
bdurrow committed Dec 27, 2021
1 parent 9534a6b commit ab594ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ resource "aws_autoscaling_group" "ecs_nodes" {

lifecycle {
create_before_destroy = true
ignore_changes = [ "desired_capacity" ]
}

tag {
Expand Down

0 comments on commit ab594ee

Please # to comment.