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

     1  module "consul" {
     2      foo = "${aws_security_group.firewall.foo}"
     3      source = "./consul"
     4  }
     5  
     6  provider "aws" {}
     7  
     8  resource "aws_security_group" "firewall" {}
     9  
    10  resource "aws_instance" "web" {
    11      security_groups = [
    12          "foo",
    13          "${aws_security_group.firewall.foo}",
    14          "${module.consul.security_group}"
    15      ]
    16  }