The ec2.py inventory is not fully self contained and relies on
functionality within ansible itself.

The file you pulled from github requires ansible 2.3 to function.


On Mon, Jun 5, 2017 at 6:46 PM Michael Bushey <corw...@gmail.com> wrote:

> Hello,
>
> I am running Ubuntu 16.04 w/Ansible 2.0.0.2-2ubuntu1.
>
> /etc/ansible$ wget
> https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.py
> /etc/ansible$ wget
> https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.ini
> /etc/ansible$ chmod +x /etc/ansible/ec2.py
>
> I have a credentials file in ~/.aws/credentials
>
> /etc/ansible$ ./ec2.py --list
> Traceback (most recent call last):
>   File "./ec2.py", line 1600, in <module>
>     Ec2Inventory()
>   File "./ec2.py", line 193, in __init__
>     self.do_api_calls_update_cache()
>   File "./ec2.py", line 527, in do_api_calls_update_cache
>     self.get_rds_instances_by_region(region)
>   File "./ec2.py", line 633, in get_rds_instances_by_region
>     client = ec2_utils.boto3_inventory_conn('client', 'rds', region,
> **self.credentials)
> AttributeError: 'module' object has no attribute 'boto3_inventory_conn'
>
>
> I have installed boto and boto3 via both apt-get and pip with the same
> result.
> I have found a few other versions of ec2.py but none of them work.
>
> Any ideas?
> Thanks!
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/a36c2754-06b0-4c15-aca5-021e65a8aded%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/a36c2754-06b0-4c15-aca5-021e65a8aded%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v8wpTcP0iaPTxMSn9Zzj32YezUb-PFc4TxXVAG-vMHoXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to