Need help on Dynamic Inventory (AWS) with Ansible

103 views
Skip to first unread message

MrVegas

unread,
Apr 18, 2016, 2:37:20 PM4/18/16
to Ansible Project
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,

MrVegas

unread,
Apr 18, 2016, 2:53:04 PM4/18/16
to Ansible Project
also all of this is being done on an AWS ec2 amazon linux instance so AWS shouldn't be down
Reply all
Reply to author
Forward
0 new messages