title: Terraform Nested Module Calling and Outputs
body: <p>I'm working on infrastructure provisioning, so I'm calling modules as nested.</p>
  <p>There is my file system tree.</p>
  <pre><code>   ├── main.tf
     └── modules
         ├── client.tf
         └── in
            └── main.tf
  </code></pre>
  <p>My files showing as below .</p>
  <pre><code>   #main.tf 
     module &quot;my_vpc&quot; {
            source = &quot;./modules&quot;
     }
  
     # modules/client.tf
     provider &quot;aws&quot; {
            region = &quot;us-east-2&quot;
     }
  
     module &quot;inner&quot; {
            source = &quot;./in&quot;
     }
  
    # in/main.tf
  
    provider &quot;aws&quot; {
          region = &quot;us-east-2&quot;
    }
  
    resource &quot;aws_vpc&quot; &quot;main&quot; {
          cidr_block = &quot;10.0.0.0/16&quot;
    }
  
    output &quot;vpc_id&quot; {
        value = &quot;${aws_vpc.main.id}&quot;
    }
  </code></pre>
  <p>So in my case, I want to get the outputs coming from resource-created modules at in/main.tf. But when I ran the terraform apply command there is no output.</p>
  <p>How I can solve this problem?</p>