Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Winkler authored Oct 11, 2020
1 parent cb908ae commit 0a50c6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/autoscaling/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}

Expand All @@ -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
Expand All @@ -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
}
}
Expand Down

0 comments on commit 0a50c6f

Please sign in to comment.