title: Terraform heredoc with variable string and ":"
body: <p>It seems that terraform is having difficulty with ":" in my variable string. I tried escaping it with "\" but the error persists. simply removing ":" causes the error to disappear. How can I use ":" in my variable string heredoc?</p>
  
  <pre><code>::: variables.tf :::
  variable "values" {
    type    = "string" 
    default = "&lt;&lt;EOF
      key:
        key:
          key: value
      EOF"
  }
  
  $ terraform apply
  ...
  Error loading modules: module testmodule: Error parsing .terraform/modules/9f0444507ebf595a0777cb4d34430176/variables.tf: At 4:8: illegal char
  </code></pre>