# Loops in loops for VPC creation

**URL:** <https://forum.ansible.com/t/loops-in-loops-for-vpc-creation/16991>\
**Category:** Ansible Project\
**Created:** [December 9, 2014, 3:42am UTC](https://forum.ansible.com/t/loops-in-loops-for-vpc-creation/16991 "2014-12-09T03:42:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_White](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Post date:** [December 9, 2014, 3:42am UTC](https://forum.ansible.com/t/loops-in-loops-for-vpc-creation/16991/1 "2014-12-09T03:42:17Z")

</div>

I am trying to create a play that defines by VPC infrastructure. I have a number of environments that are all set up in the same way but with different subnets. I’m trying to loop over a dict for each environment and then within that loop, loop to create by cidr subnets. However, it fails with an error “unsupported parameter for module: with\_sequence”.

I’m using the ipaddr custom filter.

I’m not sure quite how I would access my with\_sequence item even if this did work. Would it be item[1]?

My play is below…

`
