Skip to content

Commit

Permalink
Upgraded ec2-instance module example
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko committed Dec 11, 2017
1 parent 213b5b6 commit 8bead72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ module "elb" {
Owner = "user"
Environment = "dev"
}
// ELB attachments

# ELB attachments
number_of_instances = "${var.number_of_instances}"
instances = ["${module.ec2_instances.id}"]
}
Expand All @@ -88,5 +89,6 @@ module "ec2_instances" {
ami = "ami-ebd02392"
instance_type = "t2.micro"
vpc_security_group_ids = ["${data.aws_security_group.default.id}"]
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
associate_public_ip_address = true
}

0 comments on commit 8bead72

Please sign in to comment.