Search⌘ K
AI Features

Solution Review: Find the CIDR Range

Explore creating a Terraform project that builds a VPC with a custom Name tag and a second project that looks up this VPC by its tag. Understand how to output the VPC's CIDR range using Terraform data blocks and outputs, along with running necessary commands to apply your infrastructure changes in AWS.

Problem statement

Make a Terraform project that creates a VPC and sets the tag Name to your name. Create another Terraform project that looks up that VPC using a data block filtering on the Nametag and outputs the CIDR range of the VPC to the terminal.

Running the project

You can use the following commands to run the project.

📝Note: Please use the cd command to move to ...