Terraform Modular EKS + Istio โ Part 1
VPC Module (Complete Code + Real Explanation) Before touching EKS, Istio, or routing โ everything depends on one thing: ๐ Your network If the VPC is wrong: Nodes wonโt join ALB wonโt work Pods won...

Source: DEV Community
VPC Module (Complete Code + Real Explanation) Before touching EKS, Istio, or routing โ everything depends on one thing: ๐ Your network If the VPC is wrong: Nodes wonโt join ALB wonโt work Pods wonโt get IPs Routing will fail in weird ways So in this part, Iโll walk through the entire VPC module from my setup, using the exact code โ and explain what each part is doing and why it exists. ๐ Module Files This module consists of 3 files: modules/vpc/ โโโ main.tf โโโ variables.tf โโโ outputs.tf ๐ variables.tf This file defines what inputs the module expects. variable "vpc_name" { description = "Name of the VPC" type = string } variable "vpc_cidr" { description = "CIDR block for VPC" type = string default = "10.0.0.0/16" } variable "availability_zones" { description = "Availability zones" type = list(string) } variable "private_subnet_cidrs" { description = "CIDR blocks for private subnets" type = list(string) } variable "public_subnet_cidrs" { description = "CIDR blocks for public subnets