<!---
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release, and master branch are affected too.
-->
##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
- Bug Report
##### COMPONENT NAME
<!--- Name of the module/plugin/task/feature -->
/etc/ansible/ec2.py
##### ANSIBLE VERSION
<!--- Paste verbatim output from “ansible --version” between quotes below -->
```
ansible --version
ansible 2.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
```
##### CONFIGURATION
<!---
Mention any settings you have changed/added/removed in ansible.cfg
(or using the ANSIBLE_* environment variables).
-->remote_user = root
#remote_user = ubuntu
##### OS / ENVIRONMENT
<!---
Mention the OS you are running Ansible from, and the OS you are
managing, or say “N/A” for anything that is not platform-specific.
-->cat /etc/issue
Amazon Linux AMI release 2016.09
Kernel \r on an \m
##### SUMMARY
<!--- Explain the problem briefly -->
i am configuring ansible for our aws environment. brief about our setup, we have 30 + vpcs with 100 s of hosts and in daily operations , we use ssh proxy i.e from ssh (mac)--> to jumpbox --> bastion -- > destination server as a abc-user.
i installed ansible on one of ec2 and created the dynamic inventory file using /etc/ansible/ec2.py.
but i cant ssh to any node.
ansible -m ping all
[WARNING]: provided hosts list is empty, only localhost is available
[WARNING]: No hosts matched, nothing to do
ls -l hosts
-rw-r--r-- 1 root root 1331374 Dec 17 00:32 hosts
##### EXPECTED RESULTS
<!--- What did you expect to happen when running the steps above? -->
ping all the servers in our account.
please let me know if any security group or pem keys file used for each vpc.