From 61b9f3108f1669cb9ca091d53fbd0102e8ad61bd Mon Sep 17 00:00:00 2001 From: John Wards Date: Mon, 11 Jan 2016 22:00:09 +0000 Subject: [PATCH] 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 :) --- examples/aws-asg/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/aws-asg/main.tf b/examples/aws-asg/main.tf index 9dbb9ede5..8f172352d 100644 --- a/examples/aws-asg/main.tf +++ b/examples/aws-asg/main.tf @@ -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}" }