From 0a50c6f1331fa1fd952406310030f9b77e551b60 Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Sun, 11 Oct 2020 01:06:03 -0700 Subject: [PATCH] Update main.tf --- modules/autoscaling/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/autoscaling/main.tf b/modules/autoscaling/main.tf index df161f6..1a4996d 100644 --- a/modules/autoscaling/main.tf +++ b/modules/autoscaling/main.tf @@ -15,7 +15,7 @@ data "aws_ami" "ubuntu" { } locals { - html = templatefile("${path.module}/server/index.html", { NAME = join("-", [var.group, var.app_version]), BG_COLOR = var.group }) + html = templatefile("${path.module}/server/index.html", { NAME = join("-", [var.label, var.app_version]), BG_COLOR = var.label }) startup = templatefile("${path.module}/server/startup.sh", { HTML = local.html }) } @@ -35,7 +35,7 @@ resource "aws_launch_template" "webserver" { } resource "aws_autoscaling_group" "webserver" { - name = "${var.base.namespace}-${var.group}-asg" + name = "${var.base.namespace}-${var.label}-asg" min_size = 3 max_size = 3 //vpc_zone_identifier = var.base.vpc.private_subnets @@ -52,7 +52,7 @@ resource "aws_autoscaling_group" "webserver" { } tag { key = "Name" - value = "${var.base.namespace}-${var.group}" + value = "${var.base.namespace}-${var.label}" propagate_at_launch = true } }