- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Launch an EC2 Instance in a Virtual Private Cloud (VPC)
In this hands-on lab, you'll launch an Amazon EC2 instance within a custom Virtual Private Cloud (VPC). You’ll design and configure a basic VPC architecture that includes a public subnet, an internet gateway, and route tables to manage network traffic. Finally, you’ll launch an EC2 instance into the public subnet and configure its security group to allow external access. By completing this lab, you will strengthen your understanding of core AWS networking concepts and gain practical experience deploying compute resources securely within a VPC.
Lab Info
Table of Contents
-
Challenge
Create a VPC
Create a VPC named
labvpcwith 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 Public Subnet
In labvpc, create a public subnet named
publicsubnet. It must have the following IPv4 subnet CIDR block:10.0.1.0/24 -
Challenge
Create and Attach an Internet Gateway
Create an Internet Gateway named
inetGWand attach it to labvpc. -
Challenge
Launch EC2 Instance
Create an EC2 named
labec2in the labvpc, and enable Auto-assigned Public IP. Then, modify the Security Group to allow HTTP and HTTPS traffic from Anywhere. -
Challenge
Test EC2 Connectivity
Use
pingto test outbound connectivity toplurasight.com. Then test inbound connectivity by installing the Apache HTTP daemon and connecting to the EC2's Public IP using a web browser. -
Challenge
Create and Configure a Route Table
Create a Route Table named
publicroutetabfor the destination: 0.0.0.0/0 and attach it to the Internet Gateway inetGW, then associate the route table to the publicsubnet.
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.