github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/configs/configupgrade/testdata/valid/provisioner/want/provisioner.tf (about)

     1  variable "login_username" {
     2  }
     3  
     4  resource "aws_instance" "foo" {
     5    connection {
     6      host = coalesce(self.public_ip, self.private_ip)
     7      type = "ssh"
     8      user = var.login_username
     9    }
    10  
    11    provisioner "test" {
    12      commands = ["a", "b", "c"]
    13  
    14      when       = create
    15      on_failure = fail
    16  
    17      connection {
    18        host = coalesce(self.public_ip, self.private_ip)
    19        type = "winrm"
    20        user = var.login_username
    21      }
    22    }
    23  }