Create Your First Amazon EC2 Instance (Linux)

The hands-on lab is part of these learning paths

Solutions Architect – Associate Certification Preparation for AWS - Feb 2018

course-steps 28 certification 6 lab-steps 23

Certified Developer—Associate Certification for AWS

course-steps 14 lab-steps 15 quiz-steps 18

Fundamentals of AWS

course-steps 6 certification 1 lab-steps 6

Solutions Architect – Associate Certification Preparation for AWS

course-steps 8 certification 1 lab-steps 18 quiz-steps 5

Developer – Associate Certification Preparation for AWS

course-steps 7 certification 1 lab-steps 14 quiz-steps 2

SysOps Administrator – Associate Certification Preparation for AWS

course-steps 6 certification 1 lab-steps 18 quiz-steps 7

Solutions Architect—Associate Certification for AWS (2016)

course-steps 9 lab-steps 13 quiz-steps 12

SysOps Administrator—Associate Certification for AWS

course-steps 14 lab-steps 18 quiz-steps 13

Lab Steps

Logging in to the Amazon Web Services Console
Creating an EC2 Instance
Converting a PEM Key to a PPK Key
Connecting to an Instance using SSH
Getting the EC2 Instance Metadata
Terminating an EC2 Instance

Ready for the real environment experience?



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

About the Author


Antonio is an IT Manager and a software and infrastructure Engineer with 15 years of experience in designing, implementing and deploying complex webapps.

He has a deep knowledge of the IEEE Software and Systems Engineering Standards and of several programming languages (Python, PHP, Java, Scala, JS).

Antonio has also been using and designing cloud infrastructures for five years, using both public and private cloud services (Amazon Web Services, Google Cloud Platform, Azure, Openstack and Vmware vSphere).

During his past working experiences, he designed and managed large web clusters, also developing a service orchestrator for providing automatic scaling, self-healing and a Disaster Recovery Strategy.

Antonio is currently the Labs Product Manager and a Senior DevOps Engineer at Cloud Academy; his main goal is providing the best learn-by-doing experience possible taking care of the Cloud Academy Labs platform.