grem11n / terraform-aws-vpc-peering

Terraform module to setup VPC peering connection
https://registry.terraform.io/modules/grem11n/vpc-peering/aws/latest
Apache License 2.0
126 stars 91 forks source link

Need cross region peering #5

Closed craigwalkerwl closed 6 years ago

craigwalkerwl commented 6 years ago

variables.tf variable "peer_region" { description = "Peer region" default = "" }

main.tf resource "aws_vpc_peering_connection" "this" { count = "${var.create_peering ? 1 : 0}" peer_owner_id = "${var.owner_account_id}" peer_vpc_id = "${var.vpc_peer_id}" vpc_id = "${var.this_vpc_id}" auto_accept = "${var.auto_accept_peering}" peer_region = "${var.peer_region}" }

sometimes we peer across regions.

grem11n commented 6 years ago

Sorry for this huge delay with response :(

I started working on this issue in https://github.com/grem11n/terraform-aws-vpc-peering/pull/6 Unfortunately, I haven't tested it yet. Hopefully, I'll do it in the nearest days.

I'd appreciate a code review!