# Need help on Dynamic Inventory (AWS) with Ansible

**URL:** <https://forum.ansible.com/t/need-help-on-dynamic-inventory-aws-with-ansible/21198>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [April 18, 2016, 6:36pm UTC](https://forum.ansible.com/t/need-help-on-dynamic-inventory-aws-with-ansible/21198 "2016-04-18T18:36:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrVegas](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@MrVegas](https://forum.ansible.com/u/MrVegas)\
**Post date:** [April 18, 2016, 6:36pm UTC](https://forum.ansible.com/t/need-help-on-dynamic-inventory-aws-with-ansible/21198/1 "2016-04-18T18:36:31Z")

</div>

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](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:

```auto
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,

---

<div class="post-metadata">

**Author:** ![MrVegas](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@MrVegas](https://forum.ansible.com/u/MrVegas)\
**Post date:** [April 18, 2016, 6:53pm UTC](https://forum.ansible.com/t/need-help-on-dynamic-inventory-aws-with-ansible/21198/2 "2016-04-18T18:53:04Z")

</div>

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