Merge pull request #4640 from johnwards/patch-1

Fix auto scaling example to use ID rather than name
This commit is contained in:
James Nugent 2016-01-13 13:14:00 +00:00
commit f3e58fdff5
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ resource "aws_launch_configuration" "web-lc" {
image_id = "${lookup(var.aws_amis, var.aws_region)}" image_id = "${lookup(var.aws_amis, var.aws_region)}"
instance_type = "${var.instance_type}" instance_type = "${var.instance_type}"
# Security group # Security group
security_groups = ["${aws_security_group.default.name}"] security_groups = ["${aws_security_group.default.id}"]
user_data = "${file("userdata.sh")}" user_data = "${file("userdata.sh")}"
key_name = "${var.key_name}" key_name = "${var.key_name}"
} }