github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-compute/main.tf (about)

     1  variable "value" {
     2      default = ""
     3  }
     4  
     5  resource "aws_instance" "foo" {
     6      num = "2"
     7      compute = "value"
     8      compute_value = "${var.value}"
     9  }
    10  
    11  resource "aws_instance" "bar" {
    12      foo = "${aws_instance.foo.value}"
    13  }