github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/apply-provisioner-compute/main.tf (about)

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