Project: Create a VPC and Two Subnets

Try implementing a Terraform project.

Problem statement

Write a Terraform module that creates a VPC and 2 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 1400+ tech skills courses.