title: Heredoc syntax for variable values
body: <p>I'm attempting to use Heredoc syntax as a value for a string variable as per the following</p>
  
  <pre><code>variable "docker_config" {
    type = "string"
    default = &lt;&lt;EOF
  { "auths": { "https://index.docker.io/v1/": { "auth": "****" } } }
  EOF
  }
  </code></pre>
  
  <p>This doesn't result in Terraform producing an error, however when the variable is later used in a remote-exec command <strong>"echo ${var.docker_config} > /home/ubuntu/.docker/config.json"</strong>, the value is empty.</p>
  
  <p>Is this the correct way to use Heredoc syntax in a variable? </p>