Created
August 25, 2024 19:37
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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