github.com/heimweh/terraform@v0.7.4/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 }