Step 2 - Check the Python and AWS CLI installation

Run the following command to check Python on your EC2 instance:

#Check the python version:
python --version

Output:

Python 3.6.8

Run the following command to check the AWS CLI on your EC2 instance:

#Check the AWS CLI version.
aws --version

Sample output:

#Note that your linux kernel version may differ from the example.
aws-cli/1.16.310 Python/3.6.8 Linux/4.14.138-89.102.amzn1.x86_64 botocore/1.13.50

Note: Make sure you have AWS CLI version 1.16.310 and python 3.6.8 before proceeding. If you do not have these versions, review Step 1 to ensure you have completed each command correctly.