Skip to content

Commit fac6e42

Browse files
Add create_before_destroy lifecycle to target group (#52)
* Target group create_before_destroy * Auto Format Co-authored-by: cloudpossebot <[email protected]>
1 parent 54cfb5c commit fac6e42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ resource "aws_lb_target_group" "default" {
4040
interval = var.health_check_interval
4141
matcher = var.health_check_matcher
4242
}
43+
44+
lifecycle {
45+
create_before_destroy = true
46+
}
4347
}
4448

4549
resource "aws_lb_listener_rule" "unauthenticated_paths" {

0 commit comments

Comments
 (0)