Overview
A new release of your software only works with Python 3.9.13! How oddly specific. You’ll have to ensure that Python is the same version across your fleet.
Possible Points: 150 Clue Penalty: 0 Points Earned: 150
Enter answer here
Completed!
Summary
Installing Python is pretty easy…or is it? Across multiple hosts? Linux AND Windows?
Background
Your software requires exactly Python version 3.9.13 and it needs to be rolled out to the fleet. Unfortunately for you, the fleet has been individually managed and you have varying versions of Python (if at all) that you’ll have to sort out.
Your Task
You will need to install Python 3.9.13 on each host, at scale, rather than individually.
Getting Started
Since you will need to deploy at scale, be sure to leverage the commands below per each OS to assist.
Important:
Be sure to send your outputs to the S3 bucket identified in the lab outputs as “StdoutBucket”.
Amazon Linux:
sudo yum -y remove python3
sudo yum -y install gcc openssl-devel bzip2-devel libffi-devel
cd /opt
sudo wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
sudo tar xzf Python-3.9.13.tgz
cd Python-3.9.13
sudo ./configure --enable-optimizations
sudo make install
Windows:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’))
choco install python3 --version=3.9.13 -y
Restart-Computer
Inventory
3x Amazon Linux EC2 instances
2x Wndows EC2 instances
Services you should use
AWS Systems Manager
Task Validation
You’ve been given the installation details, now how will you make that happen when you don’t have SSH/RDP access?
Success criteria is Python 3.9.13 running on all 5 EC2 instances.
To check your work, look for the “CheckAnswerURL” in the “Outputs” section of the lab.
answer:AWS Systems Manager -> Run command --> Run Shell or Run PowerShell