Create Your First Amazon EC2 Instance (Linux)

Beginner

19630 students completed the lab in ~20m

Total available time: 1h:0m

7200+ students rated this lab!

How to launch, configure, and access a Linux virtual machine using AWS

Lab Overview

Amazon Elastic Compute Cloud (EC2) is one of the most popular AWS services. EC2 allows you to launch different types of cloud instances and pay for them with a pay-per-use model. EC2 allows you to have operating system level control of your computing resources while running in Amazon’s computing environment. Amazon EC2 reduces the time required to obtain and boot new server instances from days or weeks to minutes. This allows you to quickly scale capacity, both up and down, as your computing requirements change. Amazon EC2 allows you to build and configure your instances as you like, from your desired operating system to your applications.

By completing this hands-on lab, you will be able to launch and configure your first Amazon EC2 instance using the AWS Management Console.

Lab Objectives

Upon completion of this lab you will be able to:

  • Configure and launch an instance in EC2
  • Understand the Instance States and other critical instance information
  • Generate and use a Secure Shell (SSH) public/private key pair
  • Connect to a running Linux instance using an SSH client
  • Extract metadata about your running instance
  • Terminate an instance

Lab Prerequisites

You should be familiar with:

  • Conceptual understanding of EC2
  • Conceptual understanding of SSH client software, protocol, and keys
  • Some Linux shell/command level understanding is helpful, but not required

Have a look at what you will learn

Follow these steps to learn by building helpful cloud resources

Log In to the Amazon Web Service Console

Your first step to start the laboratory experience

Create an EC2 instance

Launch a new EC2 instance using the management console wizard

Convert a PEM key to a PPK key

Learn how to generate a PPK (PuTTY key) using the AWS PEM key

Connect to a remote shell using an SSH connection

How to use a remote Linux shell from Windows, Linux or Mac

Get the EC2 instance metadata

How to get the EC2 instance ID and other useful metadata

Terminate an EC2 instance

How to destroy an EC2 instance