1) Download and install the amazon-linux-extras library on the WebServer instance by using EC2 Instance Connect.
sudo amazon-linux-extras install epel -y
2) Install the CPU stress tool on the WebServer instance.
sudo yum install stress -y
3) Run the stress tool on the WebServer instance by using 4 CPU workers.
sudo stress --cpu 4