Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Launch an EC2 Instance in a Virtual Private Cloud (VPC)

In this lab scenario, Alfredo of Alfredo's Pizza is looking to set up a website to advertise his pizza shop. We are going to help him by getting the server primed and ready to host his website. 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.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 45m
Published
Clock icon Jun 25, 2021

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create a VPC

    • Navigate to the VPC console.
    • Create a VPC with the following values:
      • my-vpc
      • 10.0.0.0/16
      • No IPv6 CIDR block
      • Default tenancy

    Note: Do not use the VPC Wizard to create your VPC; instead, configure your VPC from scratch.

  2. Challenge

    Create a Public Subnet

    • Build a public subnet for your VPC.
    • Ensure you are assigning the valid CIDR blocks when creating your subnet.
  3. Challenge

    Create Routes and Configure Internet Gateway

    • Automatically request a public IPv4 address for instances launched into the public subnet.
    • Enable auto-assign public IPv4 address.
    • Create internet gateway and attach to VPC.
    • Create a new route table to direct traffic in the public subnet.

    Note: You may notice there is already a default route table created for you associated with your main network. This route allows traffic from the 10.0.0.0/16 network to pass to other nodes within the network, but it does not allow traffic to go outside of the network, such as to the public internet. Each VPC you create by default is associated with this main route table; therefore, the main route table shouldn't allow traffic out to the public internet, so we'll create a new one specifically for public internet traffic.

  4. Challenge

    Launch EC2 Instance in Subnet

    • Launch an EC2 instance in your subnet.
    • Select Amazon Linux 2 AMI, 64-bit (x86), t2.micro.
    • Create a new key pair.
  5. Challenge

    Access EC2 Instance

    • Connect to your newly created instance using EC2 Instance Connect.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans