AWS dynamic inventory not working - on ONE account

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.

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