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