github.com/paultyng/terraform@v0.6.11-0.20180227224804-66ff8f8bed40/command/e2etest/test-fixtures/full-workflow-null/main.tf (about)

     1  
     2  variable "name" {
     3    default = "world"
     4  }
     5  
     6  data "template_file" "test" {
     7    template = "Hello, $${name}"
     8  
     9    vars = {
    10      name = "${var.name}"
    11    }
    12  }
    13  
    14  resource "null_resource" "test" {
    15    triggers = {
    16      greeting = "${data.template_file.test.rendered}"
    17    }
    18  }
    19  
    20  output "greeting" {
    21    value = "${null_resource.test.triggers["greeting"]}"
    22  }