Skip to content

Commit

Permalink
fix: Ignore changes to load_balancers and target_group_arns (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs committed Nov 30, 2023
1 parent 86bd34a commit ef8235c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.83.5
rev: v1.83.6
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down
10 changes: 9 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,10 @@ resource "aws_autoscaling_group" "this" {

lifecycle {
create_before_destroy = true
ignore_changes = [
load_balancers,
target_group_arns,
]
}
}

Expand Down Expand Up @@ -885,7 +889,11 @@ resource "aws_autoscaling_group" "idc" {

lifecycle {
create_before_destroy = true
ignore_changes = [desired_capacity]
ignore_changes = [
desired_capacity,
load_balancers,
target_group_arns,
]
}
}

Expand Down

0 comments on commit ef8235c

Please sign in to comment.