Fix auto scaling example to use ID rather than name

Lost a little while figuring out why this example wouldn't work, seems you need to use id, not name :)
This commit is contained in:
John Wards 2016-01-11 22:00:09 +00:00
parent 6ee4e8597a
commit 61b9f3108f
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)}"
instance_type = "${var.instance_type}"
# Security group
security_groups = ["${aws_security_group.default.name}"]
security_groups = ["${aws_security_group.default.id}"]
user_data = "${file("userdata.sh")}"
key_name = "${var.key_name}"
}