# inventory from AWS, hosts not available

**URL:** <https://forum.ansible.com/t/inventory-from-aws-hosts-not-available/26822>\
**Category:** AWX Project\
**Tags:** aws, awx\
**Created:** [February 22, 2018, 1:25pm UTC](https://forum.ansible.com/t/inventory-from-aws-hosts-not-available/26822 "2018-02-22T13:25:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![giulia.cattani](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@giulia.cattani](https://forum.ansible.com/u/giulia.cattani)\
**Post date:** [February 22, 2018, 1:25pm UTC](https://forum.ansible.com/t/inventory-from-aws-hosts-not-available/26822/1 "2018-02-22T13:25:29Z")

</div>

Dear all,  
sorry for the stupid questions, but I’m not able to find a solution by myself.

I would like to create an inventory from my aws account. I configure a source to amazon EC2 and AWX shows me all the hosts that I have turned on, but, they are all “unavailable”. The small switch remain always on “gray ON” and I am not able to execute anything on that hosts.

What I am doing wrong ?

Thx a lot

G

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [February 22, 2018, 1:39pm UTC](https://forum.ansible.com/t/inventory-from-aws-hosts-not-available/26822/2 "2018-02-22T13:39:07Z")

</div>

They are marked as enabled because they are coming from an inventory source. When you say you can’t execute anything on them what do you mean?

---

<div class="post-metadata">

**Author:** ![giulia.cattani](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@giulia.cattani](https://forum.ansible.com/u/giulia.cattani)\
**Post date:** [February 22, 2018, 1:44pm UTC](https://forum.ansible.com/t/inventory-from-aws-hosts-not-available/26822/3 "2018-02-22T13:44:08Z")

</div>

In my case they are not enable, the switch on the left side remain gray and also the “run command” button remain gray, so I cannot try a ping command to see if the system is really up and running.

---

<div class="post-metadata">

**Author:** ![giulia.cattani](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@giulia.cattani](https://forum.ansible.com/u/giulia.cattani)\
**Post date:** [February 22, 2018, 1:57pm UTC](https://forum.ansible.com/t/inventory-from-aws-hosts-not-available/26822/4 "2018-02-22T13:57:56Z")

</div>

…I’m sorry, I see now that I can add my “aws inventory” to a job template and I can invoke my playbook from there. So I can “use” those host. The only thing I think is that the switch on the left that remain gray and also the “run command” that does not let you execute any command on the “host” tab of my new inventory deceives you and let you think that you cannot use the hosts.

```auto

Thx

```

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [February 22, 2018, 2:33pm UTC](https://forum.ansible.com/t/inventory-from-aws-hosts-not-available/26822/5 "2018-02-22T14:33:52Z")

</div>

You have to highlight the hosts and groups you want to “run command” on. Using the select box next to the hosts, groups.

---

<div class="post-metadata">

**Author:** ![giulia.cattani](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@giulia.cattani](https://forum.ansible.com/u/giulia.cattani)\
**Post date:** [February 22, 2018, 5:09pm UTC](https://forum.ansible.com/t/inventory-from-aws-hosts-not-available/26822/6 "2018-02-22T17:09:52Z")

</div>

…but why, when I download a list of systems from AWS, under the column “host” I found the public IP address of my system and not the name that I give to the system ?  
Maybe have I to start my instances specifing some special fields ?

If I try to search using the example that I found under “KEY” button I was not able to find anything. But, If I try to search by IP (or a subpart of it) I can find all the systems that has that IP.  
So I can serach inside an Inventory if the host column contains only IP addresses ?

Thx again

D.
