Skip to content
VirtualLP Virtual Learning Platform
Amazon Web Services AWS-02 beginner

Deploy a web server on Amazon EC2

Launch a Linux virtual server in the AWS console, open HTTP in its firewall, bootstrap Apache with user data and connect over EC2 Instance Connect – the classic IaaS deployment.

What you'll do

  • Navigate the AWS Management Console
  • Create an SSH key pair
  • Launch an EC2 instance with a security group
  • Bootstrap software with user data
  • Connect to and manage the instance lifecycle

Lab tasks

  1. 1 Open the EC2 service
  2. 2 Create a key pair named web-key
  3. 3 Launch a t2.micro Amazon Linux web server
  4. 4 Wait for the instance to reach the running state
  5. 5 Connect with EC2 Instance Connect
  6. 6 Verify Apache serves your page
  7. 7 Stop the instance to save cost
  8. 8 Vertically scale to t3.small