Create an EC2 instance, this instance will be used as a baseline to create a web server AMI, you can use the default VPC to make this process straightforward:
- Navigate to EC2 and create an instance choosing the Amazon Linux 2 AMI, you can name it Web Server Base; make sure to create an SSH key and open SSH traffic via the port 22 to be able to log into the server when it becomes available. Copy the public IP as you will need it in the next steps.
- Using the public IP, ssh into the server. If you have questions about the process, check the first chapter or read the instructions for Connecting to Your Linux Instance Using SSH using the following link: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
- Now execute the following commands in order to install the Apache web server and download the sample code for our demo web app:
sudo...