Day 15 - Cross Region VPC Peering with Terraform
There’s something powerful about watching two completely separate networks start talking to each other… quietly, privately, without the internet even noticing. Today’s build was exactly that. I created two VPCs in different AWS regions and connected them using VPC peering, allowing EC2 instances to communicate using private IP addresses. Architecture Here is the architecture I implemented: Simple Flow User → SSH → EC2 (Primary VPC) → Private Network → EC2 (Secondary VPC) What I Built I created: Two VPCs in different regions One public subnet in each VPC Internet gateways for both VPCs Route tables with peering routes VPC peering connection (cross region) Two EC2 instances with Apache installed Security groups allowing SSH, ICMP, and TCP Step 1: Initialize Terraform I started by initializing Terraform. terraform init Terminal showing Terraform has been successfully initialized Step 2: Review Execution Plan terraform plan This step shows everything Terraform is going to create. Plan outp...