Skip to content

Commit

Permalink
Merge pull request #15 from masterpointio/fix/ec2_instance_naming
Browse files Browse the repository at this point in the history
fix EC2 instance naming
  • Loading branch information
gberenice authored Jan 27, 2023
2 parents 84f133e + 16d76a0 commit c2f229a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ module "asg_label" {
source = "cloudposse/label/null"
version = "0.25.0"

context = module.this.context
attributes = compact(concat(["asg"], var.attributes))
context = module.this.context

# This tag attribute is required.
# See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_group#propagate_at_launch
Expand Down Expand Up @@ -320,7 +319,7 @@ resource "aws_launch_template" "default" {
}

resource "aws_autoscaling_group" "default" {
name_prefix = module.asg_label.id
name_prefix = "${module.asg_label.id}-asg"
tags = module.asg_label.tags_as_list_of_maps

launch_template {
Expand Down

0 comments on commit c2f229a

Please sign in to comment.