# Retrieve ec2 facts

**URL:** <https://forum.ansible.com/t/retrieve-ec2-facts/19939>\
**Category:** Ansible Project\
**Created:** [December 4, 2015, 3:35pm UTC](https://forum.ansible.com/t/retrieve-ec2-facts/19939 "2015-12-04T15:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adithya\_Khamithkar](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Adithya\_Khamithkar](https://forum.ansible.com/u/Adithya_Khamithkar)\
**Post date:** [December 4, 2015, 3:35pm UTC](https://forum.ansible.com/t/retrieve-ec2-facts/19939/1 "2015-12-04T15:35:22Z")

</div>

How to retrieve ec2 facts of a host using local action if the host is in the stopped state?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 4, 2015, 3:36pm UTC](https://forum.ansible.com/t/retrieve-ec2-facts/19939/2 "2015-12-04T15:36:35Z")

</div>

ec2\_facts needs to run from the host, use ec2\_remote\_facts for your scenario
