Skip to content

Commit 1c39271

Browse files
author
Steven Nemetz
committed
Add lifecycle for all target groups
1 parent 9916cde commit 1c39271

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.tf

+6
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ resource "aws_lb_target_group" "application-http" {
237237
enabled = "${var.cookie_duration > 0 ? true : false}"
238238
}
239239
tags = "${module.label.tags}"
240+
lifecycle {
241+
create_before_destroy = true
242+
}
240243
}
241244

242245
resource "aws_lb_target_group" "application-https" {
@@ -301,6 +304,9 @@ resource "aws_lb_target_group" "network" {
301304
matcher = "200-399"
302305
}
303306
tags = "${module.label.tags}"
307+
lifecycle {
308+
create_before_destroy = true
309+
}
304310
}
305311

306312
resource "aws_lb_listener" "http" {

0 commit comments

Comments
 (0)