# Get list of subnets for ec2\_elb\_lb

**URL:** <https://forum.ansible.com/t/get-list-of-subnets-for-ec2-elb-lb/16329>\
**Category:** Ansible Project\
**Created:** [September 24, 2014, 11:18pm UTC](https://forum.ansible.com/t/get-list-of-subnets-for-ec2-elb-lb/16329 "2014-09-24T23:18:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Ringo](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Post date:** [September 24, 2014, 11:18pm UTC](https://forum.ansible.com/t/get-list-of-subnets-for-ec2-elb-lb/16329/1 "2014-09-24T23:18:15Z")

</div>

Hi,

ec2\_elb\_lb wants subnets as a list of IDs. Using tags to identify subnets is more useful to us.

Anyone know if there is a way get a list of subnets for a VPC, given a dictionary of tags.

Thanks,

Steve
