AWS dynamic inventory not working - on ONE account

16 views
Skip to first unread message

Karl Auer

unread,
May 4, 2018, 11:07:57 PM5/4/18
to Ansible Project
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.


ZWLiu

unread,
Nov 9, 2018, 7:20:59 PM11/9/18
to Ansible Project
I am not sure whether you already resolve your issue or not , but did you have a ec2.ini file alongside with ec2.py ?
Reply all
Reply to author
Forward
0 new messages