# AWS dynamic inventory not working - on ONE account

**URL:** <https://forum.ansible.com/t/aws-dynamic-inventory-not-working-on-one-account/27461>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [May 5, 2018, 3:07am UTC](https://forum.ansible.com/t/aws-dynamic-inventory-not-working-on-one-account/27461 "2018-05-05T03:07:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [May 5, 2018, 3:07am UTC](https://forum.ansible.com/t/aws-dynamic-inventory-not-working-on-one-account/27461/1 "2018-05-05T03:07:56Z")

</div>

I manage multiple AWS accounts. On all but one, I can use the ec2.py dynamic inventory script.

On that one account, the inventory is always empty:

kauer@kt:~/dev/ansible$ scripts/ec2.py --list  
{  
“\_meta”: {  
“hostvars”: {}  
}  
}

So authentication to AWS works. There are definitely running instances in the account. The user I am authenticating has has full administrative access.

Does anyone have any idea why this doesn’t work on just this one AWS account?

Regards, K.

---

<div class="post-metadata">

**Author:** ![ZWLiu](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@ZWLiu](https://forum.ansible.com/u/ZWLiu)\
**Post date:** [November 10, 2018, 12:20am UTC](https://forum.ansible.com/t/aws-dynamic-inventory-not-working-on-one-account/27461/2 "2018-11-10T00:20:58Z")

</div>

I am not sure whether you already resolve your issue or not , but did you have a ec2.ini file alongside with ec2.py ?
