# Get list of all Subnets from all AWS VPC

**URL:** <https://discuss.hashicorp.com/t/get-list-of-all-subnets-from-all-aws-vpc/13732>\
**Category:** AWS\
**Created:** [September 3, 2020, 9:22am UTC](https://discuss.hashicorp.com/t/get-list-of-all-subnets-from-all-aws-vpc/13732 "2020-09-03T09:22:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stiflermt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/stiflermt/32/11289_2.png) [@stiflermt](https://discuss.hashicorp.com/u/stiflermt)\
**Post date:** [September 3, 2020, 9:22am UTC](https://discuss.hashicorp.com/t/get-list-of-all-subnets-from-all-aws-vpc/13732/1 "2020-09-03T09:22:29Z")

</div>

Hi Is it possible to iterate within a data provider to retrieve the complete subnet IDs in all VPCs on a AWS account? Basically I am trying to work out the subnet from a user-provided IP and find the correct subnet ID and VPC based on the user inputted IP . I have managed to get all the VPCs defined within a region, but I am having difficulties on iteration within them for the subnet list
