From 029d3df131b688d6bb60c6e65119a7b44d7c8512 Mon Sep 17 00:00:00 2001 From: Joe Barnes Date: Sat, 3 Jan 2015 15:04:55 -0600 Subject: [PATCH] Removing the EC2's lifecycle.create_before_destory in case that is the reason the ELB is not recognizing it should have two instances --- deploy/aws-infra.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/aws-infra.tf b/deploy/aws-infra.tf index 6133e52..1b45832 100644 --- a/deploy/aws-infra.tf +++ b/deploy/aws-infra.tf @@ -48,9 +48,9 @@ resource "aws_instance" "pac1" { Name = "pac-srv" } - lifecycle { - create_before_destroy = true - } +# lifecycle { +# create_before_destroy = true +# } } resource "aws_instance" "pac2" { @@ -63,9 +63,9 @@ resource "aws_instance" "pac2" { Name = "pac-srv" } - lifecycle { - create_before_destroy = true - } +# lifecycle { +# create_before_destroy = true +# } } resource "aws_elb" "pac-elb" {