github.com/mehmetalisavas/terraform@v0.7.10/terraform/test-fixtures/graph-builder-plan-basic/main.tf (about)

     1  variable "foo" {
     2      default = "bar"
     3      description = "bar"
     4  }
     5  
     6  provider "aws" {
     7      foo = "${openstack_floating_ip.random.value}"
     8  }
     9  
    10  resource "openstack_floating_ip" "random" {}
    11  
    12  resource "aws_security_group" "firewall" {}
    13  
    14  resource "aws_instance" "web" {
    15      ami = "${var.foo}"
    16      security_groups = [
    17          "foo",
    18          "${aws_security_group.firewall.foo}"
    19      ]
    20  }
    21  
    22  resource "aws_load_balancer" "weblb" {
    23      members = "${aws_instance.web.id_list}"
    24  }