github.com/wikibal01/hashicorp-terraform@v0.11.12-beta1/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  }
    25  
    26  locals {
    27    instance_id = "${aws_instance.web.id}"
    28  }
    29  
    30  output "instance_id" {
    31    value = "${local.instance_id}"
    32  }