Creating an EC2 instance and installing NGINX on it — Purpose To set up the AWS CLI on an AWS EC2 instance running Linux. Then provision an EC2 instance, install NGINX, create an AMI of the instance, provision a new instance from the AMI, and finally terminate our instance, all from the command line. …