Skip to content

Commit

Permalink
Add lifecycle for all target groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Nemetz committed Jan 4, 2018
1 parent 9916cde commit 1c39271
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ resource "aws_lb_target_group" "application-http" {
enabled = "${var.cookie_duration > 0 ? true : false}"
}
tags = "${module.label.tags}"
lifecycle {
create_before_destroy = true
}
}

resource "aws_lb_target_group" "application-https" {
Expand Down Expand Up @@ -301,6 +304,9 @@ resource "aws_lb_target_group" "network" {
matcher = "200-399"
}
tags = "${module.label.tags}"
lifecycle {
create_before_destroy = true
}
}

resource "aws_lb_listener" "http" {
Expand Down

0 comments on commit 1c39271

Please sign in to comment.