amazon linux 2 install stress

C++
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
Source

Also in C++: