Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 501 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 501 Bytes

terraform-aws-vpc-peering

provider "aws" {

}

module "peering_connection" {
  source = "github.com/we-dcode/terraform-aws-vpc-peering"

  providers = {
    aws.this = aws
    aws.peer = aws
  }

  this_vpc_id                    = "source vpc id"
  this_vpc_route_table_ids       = "source vpc id routing tables ids"
  allow_this_resolve_dns_in_peer = true
  allow_peer_resolve_dns_in_this = false

  peer_vpc_id                    = "peer vpc id"
  auto_accept_peering_connection = true
}