Skip to content

Commit c2f229a

Browse files
authored
Merge pull request #15 from masterpointio/fix/ec2_instance_naming
fix EC2 instance naming
2 parents 84f133e + 16d76a0 commit c2f229a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ module "asg_label" {
22
source = "cloudposse/label/null"
33
version = "0.25.0"
44

5-
context = module.this.context
6-
attributes = compact(concat(["asg"], var.attributes))
5+
context = module.this.context
76

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

322321
resource "aws_autoscaling_group" "default" {
323-
name_prefix = module.asg_label.id
322+
name_prefix = "${module.asg_label.id}-asg"
324323
tags = module.asg_label.tags_as_list_of_maps
325324

326325
launch_template {

0 commit comments

Comments
 (0)