Creating and Validating Connectivity for Amazon EC2 Instances in a Public and Private Subnet

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will review the VPC configuration and understand the components required to provision EC2 instances, while identifying what makes an instance public vs. private. We will create an Amazon EC2 instance and a security group in the public and private subnet, validate connectivity using SSH, and identify what makes the instance and the subnet private.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an Amazon EC2 Instance in the Public Subnet, and Verify Connectivity Using SSH
  1. Verify the VPC configuration.
  2. Create an Amazon EC2 instance in the public subnet, and verify connectivity using SSH.
Create an Amazon EC2 Instance in the Private Subnet
  1. Create an Amazon EC2 instance in the private subnet.
  2. Identify which configuration instance and VPC make the instance private.

Additional Resources

Log in to the AWS Management console using the provided credentials, and verify that you are in the us-east-1 region.

If you are using a Windows computer and need assistance with how to connect, you will need to follow different instructions to log in to the EC2 instance via SSH. Please watch this lesson for instructions on how to set up and connect to a Linux EC2 instance using PuTTY.

As a bonus, here is AWS's official documentation on how to SSH into private instances in VPC.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?