github.com/heimweh/terraform@v0.7.4/terraform/test-fixtures/apply-provisioner-conninfo/main.tf (about)

     1  variable "pass" {}
     2  variable "value" {}
     3  
     4  resource "aws_instance" "foo" {
     5      num = "2"
     6      compute = "dynamical"
     7      compute_value = "${var.value}"
     8  }
     9  
    10  resource "aws_instance" "bar" {
    11      connection {
    12          type = "telnet"
    13      }
    14  
    15      provisioner "shell" {
    16          foo = "${aws_instance.foo.dynamical}"
    17          connection {
    18              user = "superuser"
    19              port = 2222
    20              pass = "${var.pass}"
    21          }
    22      }
    23  }