title: Terraform "vpc" module "private_subnets" value after "apply"
body: <p>I have created a vpc using module &quot;vpc&quot; , Please clarify how the variable private_subnets or public_subnets be assigned with Subnet ID after &quot;apply&quot; BUT my question is, in &quot;resource&quot; block these variables are assigned CIDR blocks.</p>
  <pre><code>module &quot;vpc&quot; {
    source = &quot;terraform-aws-modules/vpc/aws&quot;
  
    name = &quot;my-vpc&quot;
    cidr = &quot;10.0.0.0/16&quot;
  
    azs             = [&quot;eu-west-1a&quot;, &quot;eu-west-1b&quot;, &quot;eu-west-1c&quot;]
    private_subnets = [&quot;10.0.1.0/24&quot;, &quot;10.0.2.0/24&quot;, &quot;10.0.3.0/24&quot;]
    public_subnets  = [&quot;10.0.101.0/24&quot;, &quot;10.0.102.0/24&quot;, &quot;10.0.103.0/24&quot;]
  
    enable_nat_gateway = true
    enable_vpn_gateway = true
  
    tags = {
      Terraform = &quot;true&quot;
      Environment = &quot;dev&quot;
    }
  }
  </code></pre>