Error while creating EC2 Dynamic Inventory in Ansible

amazon-web-servicesansibleboto

I am new to Ansible. I had been using the following tutorial to set up dynamic inventory- https://aws.amazon.com/blogs/apn/getting-started-with-ansible-and-dynamic-amazon-ec2-inventory-management/

While running ec2.py, I am getting the following error-
ERROR: Inventory script (ec2.py) had an execution error: Traceback (most recent call last):
File "/etc/ansible/ec2.py", line 130, in
from boto import elasticache
ImportError: cannot import name elasticache

Can anyone suggest what is going wrong?

Best Answer

It looks like you need to install the boto module

pip install boto

should do that for you.