# Getting AWS inventory dynamically after cloudformation

**URL:** <https://forum.ansible.com/t/getting-aws-inventory-dynamically-after-cloudformation/24998>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [July 17, 2017, 1:12am UTC](https://forum.ansible.com/t/getting-aws-inventory-dynamically-after-cloudformation/24998 "2017-07-17T01:12:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hector\_Goncalves](https://avatars.discourse-cdn.com/v4/letter/h/3d9bf3/32.png) [@Hector\_Goncalves](https://forum.ansible.com/u/Hector_Goncalves)\
**Post date:** [July 17, 2017, 1:12am UTC](https://forum.ansible.com/t/getting-aws-inventory-dynamically-after-cloudformation/24998/1 "2017-07-17T01:12:42Z")

</div>

Hi! currently I’m working on a playbook that creates an AWS cloudformation stack, then gets the ips of the created instances and run some commands on them.

I have this project structure:

`

- main.yml
- create\_cloudformation\_stack.yml
- post\_cfdeploy\_tasks.yml
- roles/
- … (some private developed roles to get aws credentials, they work ok)
- group\_vars/
- tag\_someName\_someKey.yml

`

main.yml looks like this:

`
