Skip to content

Commit

Permalink
Use name_prefix so we can create_before_destroy. (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
joestump authored and tfhartmann committed Oct 17, 2017
1 parent 906a292 commit 2c43cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ resource "aws_launch_configuration" "ecs" {
}

resource "aws_autoscaling_group" "ecs" {
name = "asg-${aws_launch_configuration.ecs.name}"
name_prefix = "asg-${aws_launch_configuration.ecs.name}-"
vpc_zone_identifier = ["${var.subnet_id}"]
launch_configuration = "${aws_launch_configuration.ecs.name}"
min_size = "${var.min_servers}"
Expand Down

0 comments on commit 2c43cef

Please sign in to comment.