github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/terraform/test-fixtures/graph-cycle/main.tf (about)

     1  variable "foo" {
     2      default = "bar"
     3      description = "bar"
     4  }
     5  
     6  provider "aws" {
     7      foo = "${aws_security_group.firewall.value}"
     8  }
     9  
    10  resource "aws_security_group" "firewall" {}
    11  
    12  resource "aws_instance" "web" {
    13      ami = "${var.foo}"
    14      security_groups = [
    15          "foo",
    16          "${aws_security_group.firewall.foo}"
    17      ]
    18  }