mirror of https://github.com/hashicorp/terraform
This uses the fixed "superset" schema from the main terraform package to apply our standard expression mapping, with the exception of "type" where interpolation sequences are not supported due to the type being evaluated early to retrieve the schema for decoding the rest.pull/20445/head
parent
e2ef51800a
commit
ac6e0e42dc
@ -1,8 +1,18 @@
|
||||
resource "test_instance" "foo" {
|
||||
connection {
|
||||
type = "ssh"
|
||||
host = "${self.private_ip}"
|
||||
}
|
||||
|
||||
provisioner "test" {
|
||||
commands = "${list("a", "b", "c")}"
|
||||
|
||||
when = "create"
|
||||
on_failure = "fail"
|
||||
|
||||
connection {
|
||||
type = "winrm"
|
||||
host = "${self.public_ip}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,8 +1,18 @@
|
||||
resource "test_instance" "foo" {
|
||||
connection {
|
||||
type = "ssh"
|
||||
host = self.private_ip
|
||||
}
|
||||
|
||||
provisioner "test" {
|
||||
commands = ["a", "b", "c"]
|
||||
|
||||
when = create
|
||||
on_failure = fail
|
||||
|
||||
connection {
|
||||
type = "winrm"
|
||||
host = self.public_ip
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue