github.com/pulumi/terraform@v1.4.0/pkg/terraform/testdata/apply-provisioner-sensitive/main.tf (about) 1 variable "password" { 2 type = string 3 sensitive = true 4 } 5 6 resource "aws_instance" "foo" { 7 connection { 8 host = "localhost" 9 type = "telnet" 10 user = "superuser" 11 port = 2222 12 password = var.password 13 } 14 15 provisioner "shell" { 16 command = "echo ${var.password} > secrets" 17 } 18 }