...

/

Solution Review: Create a VPC and Two Subnets

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

Running the project

Clicking the RUN button will run the following commands:

terraform init
terraform apply
...
Access this course and 1400+ top-rated courses and projects.