github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/graph-builder-plan-basic/main.tf (about) 1 variable "foo" { 2 default = "bar" 3 description = "bar" 4 } 5 6 provider "aws" { 7 test_string = "${openstack_floating_ip.random.test_string}" 8 } 9 10 resource "openstack_floating_ip" "random" {} 11 12 resource "aws_security_group" "firewall" {} 13 14 resource "aws_instance" "web" { 15 test_string = var.foo 16 17 test_list = [ 18 "foo", 19 aws_security_group.firewall.test_string, 20 ] 21 } 22 23 resource "aws_load_balancer" "weblb" { 24 test_list = aws_instance.web.test_list 25 } 26 27 locals { 28 instance_id = "${aws_instance.web.test_string}" 29 } 30 31 output "instance_id" { 32 value = "${local.instance_id}" 33 }