AWS VPC Peering Connection Module
Terraform module, which creates a peering connection between two VPCs and adds routes to the local VPC. Routes on the Peer VPC side should be configured separately.
This module is designed to work with VPC module from the Terraform Registry
Note
Some features of the aws_peering_conection
resource are missing. However, they can be easily added on request
These types of resources are supported:
Usage
Sample usage in combination with VPC Terraform module:
module "vpc-peering" {
source = "./terraform-aws-vpc-peering"
owner_account_id = "000000000000"
vpc_peer_id = "vpc-00000000"
this_vpc_id = "${module.vpc.vpc_id}"
private_route_table_ids = ["${module.vpc.private_route_table_ids}"]
public_route_table_ids = ["${module.vpc.public_route_table_ids}"]
peer_cird_block = "10.1.0.1/24"
auto_accept_peering = true
}
Examples
Complete example is shown above
Authors
Module managed by Yurii Rochniak
License
Apache 2 Licensed. See LICENSE for full details.