title: Terraform output variables to be used as input variables
body: <p>I want to use output variables of one resource/module as an input to another resource/modules. Is that possible? Here i want the output value from 'outputs.tf' in root to be used as input in 'main.tf' of module.</p>
  
  <pre><code>    root
      |--main.tf
      |--vars.tf
      |--outputs.tf
      |---module
           |--main.tf
           |--vars.tf
  </code></pre>