title: Different environments for Terraform (Hashicorp)
body: <p>I've been using Terraform to build my AWS stack and have been enjoying it. If it was to be used in a commercial setting the configuration would need to be reused for different environments (e.g. QA, STAGING, PROD). </p>
  
  <p>How would I be able to achieve this? Would I need to create a wrapper script that makes calls to terraform's cli while passing in different state files per environment like below? I'm wondering if there's a more native solution provided by Terraform.</p>
  
  <pre class="lang-bash prettyprint-override"><code>terraform apply -state=qa.tfstate
  </code></pre>