This module creates an AWS VPC peering connector and route.
module "vpc_peering_connector" {
source = "KeisukeYamashita/terraform-aws-vpc-peering-connector"
version = "~> 1.0"
target_cidr_block = "100.200.100.200/20"
target_peering_id = "pcx-000111222333444"
auto_accept = true
route_table_id = aws_route_table.my_table.id
}
Name | Version |
---|---|
terraform | >= 0.12.0, < 0.14 |
aws | >= 3.0, < 4.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
auto_accept | Accept VPC peering automatically | bool |
false |
no |
route_table_id | ID of the route table to associate | string |
null |
yes |
target_cidr_block | CIDR block of the target VPC | string |
null |
yes |
target_peering_id | ID of the peering target | string |
null |
yes |
Apache 2.0 Licensed. See LICENSE for full details.