title: How can I run terraform code in sequence?
body: <p>I am trying to setup some automation around AWS infrastructure. Just bumped into one issue about module dependencies. Since there is no "Include" type of option in terraform so it's becoming little difficult to achieve my goal.</p>
  
  <p>Here is the short description of scenario:</p>
  
  <p>In my root directory I've a file <code>main.tf</code> </p>
  
  <p>which consists of multiple module blocks 
  eg. </p>
  
  <pre><code>module mytest1
  {
  source = mymod/dev
  }
  
  module mytest2
  {
  source = mymod2/prod
  }
  </code></pre>
  
  <p>each dev and prod have lots of tf files
  Few of my .tf file which exists inside <code>prod</code> directory needs some output from the resources which exists inside <code>dev</code> directory</p>
  
  <p>Since module has no dependency, I was thinking if there is any way to run modules in sequence or any other ideas ?</p>