lib/rouge/demos/terraform in rouge-3.8.0 vs lib/rouge/demos/terraform in rouge-3.9.0
- old
+ new
@@ -1,12 +1,5 @@
-# From: https://github.com/terraform-providers/terraform-provider-aws/blob/master/examples/count/main.tf
-
-# Specify the provider and access details
-provider "aws" {
- region = "${var.aws_region}"
-}
-
resource "aws_elb" "web" {
name = "terraform-example-elb"
# The same availability zone as our instances
availability_zones = ["${aws_instance.web.*.availability_zone}"]
@@ -18,14 +11,6 @@
lb_protocol = "http"
}
# The instances are registered automatically
instances = ["${aws_instance.web.*.id}"]
-}
-
-resource "aws_instance" "web" {
- instance_type = "m1.small"
- ami = "${lookup(var.aws_amis, var.aws_region)}"
-
- # This will create 4 instances
- count = 4
}