Skip to content

Commit

Permalink
Fix auto scaling example to use ID rather than name
Browse files Browse the repository at this point in the history
Lost a little while figuring out why this example wouldn't work, seems you need to use id, not name :)
  • Loading branch information
johnwards committed Jan 11, 2016
1 parent 6ee4e85 commit 61b9f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/aws-asg/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand Down

0 comments on commit 61b9f31

Please sign in to comment.