Skip to content

A Terraform module which configures VPC peering between multiple VPCs in different accounts.

License

Notifications You must be signed in to change notification settings

blackbird-cloud/terraform-aws-vpc-peering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Aws Vpc Peering Module

A Terraform module which configures VPC peering between multiple VPCs in different accounts.

blackbird-logo

Example

module "requester" {
  source  = "blackbird-cloud/vpc-peering/aws//modules/vpc-peering-accepter"
  version = "~> 1"

  requester_vpc_id    = "vpc-12345678"
  accepter_vpc_id     = "vpc-87654321"
  accepter_account_id = "123456789012"
  peer_region         = "us-west-2"

  accepter_cidr_block = "10.0.0.0/16"
  route_table_ids     = ["rtb-12345678", "rtb-87654321"]
}

module "accepter" {
  source  = "blackbird-cloud/vpc-peering/aws//modules/vpc-peering-accepter"
  version = "~> 1"

  vpc_peering_connection_id = module.requester.id

  auto_accept     = false
  route_table_ids = ["rtb-12345678", "rtb-87654321"]

  requester_cidr_block = "20.0.0.0/16"
}

Modules

About

We are Blackbird Cloud, Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.

Checkout our other 👉 terraform modules

Copyright

Copyright © 2017-2025 Blackbird Cloud

About

A Terraform module which configures VPC peering between multiple VPCs in different accounts.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages