# How create (aws) instances using exact\_count but in different subnets?

**URL:** <https://forum.ansible.com/t/how-create-aws-instances-using-exact-count-but-in-different-subnets/18033>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [April 21, 2015, 9:17am UTC](https://forum.ansible.com/t/how-create-aws-instances-using-exact-count-but-in-different-subnets/18033 "2015-04-21T09:17:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [April 21, 2015, 9:17am UTC](https://forum.ansible.com/t/how-create-aws-instances-using-exact-count-but-in-different-subnets/18033/1 "2015-04-21T09:17:11Z")

</div>

I can’t seem to find any way to reliably eg “create 3 instances in different subnets”. Well, I can do that using random selection of the subnet, but then ansible will randomly replace the instances.

-barry
