Need help on Dynamic Inventory (AWS) with Ansible

Hi Guys,

I was following the dynamic inventory guide here for AWS EC2 Inventory Script

http://docs.ansible.com/ansible/intro_dynamic_inventory.html#example-aws-ec2-external-inventory-script

Unfortunately when I get to this point I don’t get to continue:

You can test the script by itself to make sure your config is correct:

cd contrib/inventory
./ec2.py --list

I get the following

region name: ‘all’ likely not supported, or AWS is down. connection to region failed.

Please note my ec2.ini file has the following which is the default

regions = ‘all’

regions_exclude = us-gov-west-1,cn-north-1

Any help on something to try would be greatly appreciated.

Thank you,

also all of this is being done on an AWS ec2 amazon linux instance so AWS shouldn’t be down