github.com/pdecat/terraform@v0.11.9-beta1/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  }