Objectives
- Create a Linux EC2 environment
- Access EC2 environments from SSH
- Install a web server and host a site
Lab Details
- Create a free-tier eligible Linux instance. Be careful to choose the Linux image that is free-tier eligible to avoid incurring charges.
- Using SSH on the terminal or SSH through PuTTY, connect to your EC2 instance.
Take a screenshot of the SSH connection.
- Install Apache2.
- Create an
.htmlfile and put it in your web server root directory. Include your name inside an<h1>tag. Other than your name, there are no specific requirements for the file. - Open your EC2 instance firewall to allow HTTP (port 80) traffic.
- Access your site through a browser.
Take a screenshot of your rendered page including the address bar to verify the file is running through your EC2 instance.
What did I learn?
- Create an AWS EC2 instance
- Connect to EC2 using SSH
- Install and configure a web server