boto error to launch ec2 instance
<p>i am using ansible to create an ec2 isntance . during the playbook run, i am getting the error as:</p>

<pre><code>TASK [create a single ec2 instance] ********************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: name 'botocore' is not defined
fatal: [localhost]: FAILED! =&gt; {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_eVkiMV/ansible_module_ec2.py\", line 1554, in &lt;module&gt;\n    from ansible.module_utils.ec2 import *\n  File \"/tmp/ansible_eVkiMV/ansible_modlib.zip/ansible/module_utils/ec2.py\", line 61, in &lt;module&gt;\n  File \"/tmp/ansible_eVkiMV/ansible_modlib.zip/ansible/module_utils/ec2.py\", line 62, in AWSRetry\nNameError: name 'botocore' is not defined\n", "module_stdout": "", "msg": "MODULE FAILURE"}
        to retry, use: --limit @apache_aws.retry

PLAY RECAP *********************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=1
</code></pre>

<p>it says that botocore is not defined but i installed boto using pip install boto. can anyone please figure out what problem is ?</p>

<p>You need to install boto3 (<code>pip install boto3</code>)</p>

python python-2.7 python-3.x ansible ansible-playbook