Networking module created during Lauro Müller's Terraform course: https://www.lauromueller.com/courses/mastering-terraform
This module manages the creation of VPCs and Subnets, allowing for the creation of both private and public subnets.
Example usage:
module "vpc" {
source = "./modules/networking"
vpc_config = {
cidr_block = "10.0.0.0/16"
name = "your_vpc"
}
subnet_config = {
subnet_1 = {
cidr_block = "10.0.0.0/24"
az = "eu-west-1a"
}
subnet_2 = {
cidr_block = "10.0.1.0/24"
public = true
az = "eu-west-1b"
}
}
}
Make sure to check my other courses:
- 👉 The Complete Docker and Kubernetes Course: From Zero to Hero - https://www.lauromueller.com/courses/docker-kubernetes
- 👉 The Definitive Helm Course: From Beginner to Master - https://www.lauromueller.com/courses/definitive-helm-course
- 👉 Mastering GitHub Actions: From Beginner to Expert - https://www.lauromueller.com/courses/mastering-github-actions
- 👉 Write better code: 20 code smells and how to get rid of them - https://www.lauromueller.com/courses/writing-clean-code