title: How to create one variable from another variable in terraform variable.tf file?
body: <p>For example, In variable.tf file we have a code like below</p>
  <pre><code>variable &quot;variable1&quot; {
      type    = string
      default = &quot;ABC&quot;
  }
  
  variable &quot;variable2&quot; {
      type    = string
      default = &quot;DEF&quot;
  }
  
  variable &quot;variable3&quot; {
      type    = string
      default = &quot;$var.variable1-$var.variable2&quot;
  }
  </code></pre>
  <p>Expected output :</p>
  <p>variable3 = ABC-DEF</p>