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.10.12

Note: The major and minor version of Python may vary from what you see above

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/2.13.26 Python/3.11.6 Linux/6.2.0-1013-aws exe/x86_64.ubuntu.22 prompt/off

Make sure you have AWS CLI version 2.x or higher and python 3.10 or higher before proceeding. If you do not have these versions, you may have difficultly successfully completing the lab.