Skip to content

Commit

Permalink
feat: add lifecycle rule for client asg
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed Aug 15, 2023
1 parent 4b05e4b commit 3c1c528
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/nomad-clients/asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,8 @@ resource "aws_autoscaling_group" "nomad_client" {
timeouts {
delete = "15m"
}

lifecycle {
create_before_destroy = true
}
}
4 changes: 4 additions & 0 deletions modules/nomad-clients/launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,8 @@ resource "aws_launch_template" "nomad_client" {
var.ebs_tags
)
}

lifecycle {
create_before_destroy = true
}
}

0 comments on commit 3c1c528

Please sign in to comment.