A VPC with Public and Private Subnets

Lab Introduction

A VPC with Public and Private Subnets

Welcome to the "A VPC with Public and Private Subnets" lab! In this lab, we will explore how to create a Virtual Private Cloud (VPC) with both public and private subnets using AWS and Terraform. A VPC is a logically isolated section of the AWS cloud where you can launch AWS resources in a virtual network that you define. By creating public and private subnets within the VPC, you can control the accessibility and security of your resources.

Throughout this lab, we will utilize Terraform, an infrastructure as code tool, to provision and manage the AWS resources. Terraform allows you to define your infrastructure in a declarative language called HCL (HashiCorp Configuration Language), making it easier to version, manage, and collaborate on your infrastructure code. By the end of this lab, you will have a solid understanding of how to create a VPC with public and private subnets using AWS and Terraform, enabling you to build secure and scalable cloud architectures.


60 min.



  • Cloud Provider: AWS
  • Language(s): HCL
  • Tooling: Terraform
  • Category: Networking

This project is available with a paid Skillmix subscription.