Create a VPC in AWS

In the "Code Editor" tab, open the vpc.tf file.

Your task: Add resources to create a VPC with a CIDR block of 10.0.0.0/16, a subnet with a CIDR block of 10.0.1.0/24, an internet gateway attached to the VPC, a route table with a route to the internet gateway, and an association between the subnet and the route table.

GitOps Repository

  • 📁 /root/learn-terraform-aws-vpc
    • 📄 provider.tf
    • 📄 vpc.tf

Code Editor

Terminal