title: Multiple user_data File use in Terraform
body: <p>I am trying to have a common user_data file for common tasks such as folder creation and certain package install and a separate user_data file for application specific configuration</p>
  
  <p>I am trying the below -</p>
  
  <pre><code>user_data = "${data.template_file.userdata_common.rendered}", "${data.template_file.userdata_master.rendered}"
  </code></pre>
  
  <p>With these configs -</p>
  
  <h1>Common User Data Template</h1>
  
  <pre><code>data "template_file" "userdata_common" {
    template = "${file("${path.module}/userdata_common.sh")}"
  
    vars {
      "ALBTarget"          = "${var.ALBTarget}"
      "s3bucket"           = "${var.s3bucket}"
      "centrifydomain"     = "${lookup(var.centrifydomain, format("%s-%s", lower(var.env),var.region))}"
      "centrifyadgroup"    = "${lookup(var.centrifyadgroup, format("%s-%s", lower(var.env),var.region))}"
    }
  }
  </code></pre>
  
  <h1>Application Specific Config</h1>
  
  <pre><code>data "template_file" "userdata_master" {
    template = "${file("${path.module}/userdata_master.sh")}"
  
    vars {
      "ALBTarget"          = "${var.ALBTarget}"
      "s3bucket"           = "${var.s3bucket}"
      "centrifydomain"     = "${lookup(var.centrifydomain, format("%s-%s", lower(var.env),var.region))}"
      "centrifyadgroup"    = "${lookup(var.centrifyadgroup, format("%s-%s", lower(var.env),var.region))}"
    }
  }
  </code></pre>
  
  <p>I get the below Error when i do Plan -</p>
  
  <pre><code>Failed to load root config module: Error parsing /terraform/main.tf: key ${data.template_file.userdata_common.rendered}"' expected start of object ('{') or assignment ('=')
  </code></pre>
  
  <p>Is this possible using Terraform (0.9.3)?</p>
  
  <p>If not, what's the best way to do this with Terraform?</p>