github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/config/test-fixtures/connection.tf (about)

     1  resource "aws_instance" "web" {
     2      ami = "${var.foo}"
     3      security_groups = [
     4          "foo",
     5          "${aws_security_group.firewall.foo}"
     6      ]
     7  
     8      connection {
     9          type = "ssh"
    10          user = "root"
    11      }
    12  
    13      provisioner "shell" {
    14          path = "foo"
    15          connection {
    16              user = "nobody"
    17          }
    18      }
    19  
    20      provisioner "shell" {
    21          path = "bar"
    22      }
    23  }