From 97a6850ceb6a79749f481db3e201f6d1b1dd302e Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Sun, 11 Oct 2020 01:09:01 -0700 Subject: [PATCH] Update main.tf --- modules/autoscaling/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/autoscaling/main.tf b/modules/autoscaling/main.tf index 1a4996d..7c27c58 100644 --- a/modules/autoscaling/main.tf +++ b/modules/autoscaling/main.tf @@ -40,7 +40,7 @@ resource "aws_autoscaling_group" "webserver" { max_size = 3 //vpc_zone_identifier = var.base.vpc.private_subnets vpc_zone_identifier = var.base.vpc.public_subnets - target_group_arns = var.group == "green" ? var.base.target_group_arns.green : var.base.target_group_arns.blue + target_group_arns = var.label == "green" ? var.base.target_group_arns.green : var.base.target_group_arns.blue launch_template { id = aws_launch_template.webserver.id version = aws_launch_template.webserver.latest_version