
ERROR! The ec2 dynamic inventory plugin requires boto3 and botocore.
- Last Updated on: July 13, 2021
- By: scriptcrunch
Issue: When trying to set up Ansible Dynamic inventory, I am getting the following error.
ERROR! The ec2 dynamic inventory plugin requires boto3 and botocore.
I have installed python3 and boto3. But still, ansible is throwing an error on boto3.
[Solution] ec2 dynamic inventory plugin requires boto3
This issue normally happens when you install Ansible from Ansible ppa.
To fix these issues you need to install boto3 using the following command.
sudo apt-get install python-boto3
Once you executed the above command, you can try executing the dynamic inventory again, it will not throw this error.
You might like, checking application status using Ansible
Other Interesting Blogs

CKA Exam Study Guide: Certified Kubernetes Administrator
Passing the cloud-native Certified Kubernetes Administrator (CKA) exam is not a cakewalk. To pass the CKA exam, you should have enough hands-on

[35% OFF] Linux Foundation LFCA & LFCS Exam Voucher Codes
Linux Foundation has announced up to a $284 discount on its Linux certification programs Linux Foundation Certified IT Associate (LFCA) and Linux

Linux Foundation Coupon for 2023
Hi Techies, I wanted to let you know about a pretty sweet deal with the Linux Foundation Coupon that is running now.