github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/terraform/testdata/apply-provisioner-destroy-ref/main.tf (about) 1 resource "aws_instance" "bar" { 2 value = "hello" 3 } 4 5 resource "aws_instance" "foo" { 6 foo = "bar" 7 8 provisioner "shell" { 9 command = "${aws_instance.bar.value}" 10 when = "destroy" 11 } 12 }