title: Question About Terraform Language (Count)
body: <pre><code>data &quot;aws_availability_zones&quot; &quot;available&quot; {
    state = &quot;available&quot;
  }
  
  resource &quot;aws_subnet&quot; &quot;subnet&quot; {
    count = length(data.aws.availability_zones.available.names)
  
    # ...
  }
  </code></pre>
  <p>let say the legion in my area has 4 availability zones. (A,B,C,D)</p>
  <p>and the code creates a subnet on each AZs.</p>
  <p>but I want to create a subnet on A and B only.</p>
  <p>can I achieve that goal by editing this line?</p>
  <pre><code>  count = length(data.aws.availability_zones.available.names)
  </code></pre>
  <p>Or the only answer is adding another resource?</p>
  <p>thank you for your time</p>