- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Launch an EC2 Instance in a Virtual Private Cloud (VPC)
During this lab, you'll have the opportunity to explore and understand foundational and compute services provided by AWS. We will create a virtual private cloud (VPC), subnets across multiple Availability Zones (AZs), routes and an internet gateway, and more. These services are the foundation of networking architecture inside of AWS and cover concepts such as infrastructure, design, routing, and security.

Lab Info
Table of Contents
-
Challenge
Create a VPC
Create a VPC named
my-vpc
with a CIDR of 10.0.0.0/16Do not use the VPC Wizard to create your VPC; instead, configure your VPC from scratch.
-
Challenge
Create a Subnet
In my-vpc, create a subnet named
my-public-subnet
. It must have the following properties:- Availability Zone: us-east-1a
- IPv4 CIDR block:
10.0.0.0/24
-
Challenge
Create Routes and Configure Internet Gateway
Create an Internet Gateway and attach it to my-vpc.
You will also do the following:
- Allow EC2s on your subnet to have a public IP auto-assigned.
- Create a new route table to direct traffic in the public subnet.
-
Challenge
Launch EC2 Instance in Subnet
Create an EC2 named
my-public-instance
. (It will be launched by default into your subnet) -
Challenge
Access EC2 Instance
Connect to your newly created instance using EC2 Instance Connect.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.