github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/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  }