# Querying AWS to add hosts with add\_host

**URL:** <https://forum.ansible.com/t/querying-aws-to-add-hosts-with-add-host/17912>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [April 6, 2015, 4:32pm UTC](https://forum.ansible.com/t/querying-aws-to-add-hosts-with-add-host/17912 "2015-04-06T16:32:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_GS](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@M\_GS](https://forum.ansible.com/u/M_GS)\
**Post date:** [April 6, 2015, 4:32pm UTC](https://forum.ansible.com/t/querying-aws-to-add-hosts-with-add-host/17912/1 "2015-04-06T16:32:35Z")

</div>

When using the ec2 module I can register hosts when they are initially created. Is it possible to query aws and register existing hosts?

For example right now I start a few machines and set the exact\_count and count\_tag. This works well because it allows me to just change the count. What is to still register using add\_host, so the rest of my playbook can continue as usual, weather machines were actually added or not.

Thanks!
