Skip to content

uliananeil/vpc_peering

Repository files navigation

What is VPC peering?

A VPC peering connection is a networking connection between VPCs that enables you to route traffic between them using private IPv4 addresses or IPv6 addresses. Instances in either VPC can communicate with each other as if they are within the same network. Link on more information.

Infrastructure

This terraform code creates three VPCs in three different Regions, brings up ec2 instances with nginx and configures VPC peering between them.

The diagram below shows the infrastructure:

Infrastructure!

To create infrastructure:

  1. Initialize a working directory containing Terraform configuration files
terraform init
  1. Create an infrastructure
terraform apply

To destroy:

terraform destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages