Back to course

The Terraform Registry

Infrastructure as Code (Terraform & OpenTofu Mastery)

Don't Reinvent the Wheel

Common infrastructures (like a VPC in AWS) are complex. Instead of writing it yourself, you can use modules written by experts in the Terraform Registry.

hcl module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "5.0.0"

name = "my-vpc" cidr = "10.0.0.0/16"

... other settings

}

This allows you to leverage thousands of hours of work by the community.