github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/internal/terraform/testdata/apply-plan-connection-refs/main.tf (about) 1 variable "msg" { 2 default = "ok" 3 } 4 5 resource "test_instance" "a" { 6 foo = "a" 7 } 8 9 10 resource "test_instance" "b" { 11 foo = "b" 12 provisioner "shell" { 13 command = "echo ${var.msg}" 14 } 15 connection { 16 host = test_instance.a.id 17 } 18 }