Creating Subnets with CDK

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, you are going to create a new VPC and subnet using AWS CDK.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Launch a Cloud9 Instance

Log in to the AWS console and launch a Cloud9 instance.

Edit Your Terminal Inputs

Put together the code for CDK to be able to deploy the correct resources using the GitHub repo.

Create and Deploy Subnets and a New VPC

Use the CDK project to launch and deploy the public and private subnets within a new VPC.

Additional Resources


In this lab, you have been tasked by your company to create a new CDK project that launches one public and one private subnet into a VPC.

Before starting the lab, ensure you have the necessary files from GitHub.

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?