Solution Review: Create a VPC and Two Subnets

In this lesson, we'll discuss the solution to the Terraform project we attempted in the last lesson.

Problem statement

Write a Terraform module that creates a VPC and two subnets. The module takes inputs for the CIDR ranges for the VPC and subnets and should return the created VPC and each subnet as an output. Create a Terraform project that uses the module and print the output of the module to the console

Get hands-on with 1200+ tech skills courses.