From 9916cde94f0a055f99caf026241a852e6c9171e5 Mon Sep 17 00:00:00 2001 From: Steven Nemetz Date: Thu, 4 Jan 2018 10:00:39 -0800 Subject: [PATCH] Add lifecycle for target group --- main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.tf b/main.tf index 96277a5..c782482 100644 --- a/main.tf +++ b/main.tf @@ -271,6 +271,9 @@ resource "aws_lb_target_group" "application-https" { enabled = "${var.cookie_duration > 0 ? true : false}" } tags = "${module.label.tags}" + lifecycle { + create_before_destroy = true + } } resource "aws_lb_target_group" "network" {