Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ben-x/4c4873e631e108337040a790036e1730 to your computer and use it in GitHub Desktop.

Select an option

Save ben-x/4c4873e631e108337040a790036e1730 to your computer and use it in GitHub Desktop.
vpc-peering connection of two regions. Part of multi-region-with-single-workload project
module "vpc_peering_ca_west_1_eu_central_1" {
source = "../../../common-modules/aws-vpc-peering-connection"
allow_dns_resolution = true
name = "ca-west-1-eu-central-1-vpc-peering"
tags = var.tags
providers = {
aws.requester = aws.eu-central-1
aws.accepter = aws.ca-west-1
}
accepter = {
region = var.ca_west_1.aws_region
vpc_id = var.ca_west_1.vpc.main.id
}
requester = {
region = var.eu_central_1.aws_region
vpc_id = var.eu_central_1.vpc.main.id
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment