github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/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  }