github.com/LorbusChris/terraform@v0.11.12-beta1/terraform/test-fixtures/graph-tainted/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 "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 }