This module provides the ability to create a peering connection between two VPCs.
You will need to create two providers for this module. One for the request, and one for the accepter. Usually you can obtain these values from remote state files.
module "pcx" {
source = "helmcode.scalr.io/helmcode/terraform-aws-vpc-pcx"
version = "~> 2.0"
providers = {
aws = aws
aws.accepter_pcx_account = aws.accepter_pcx_account
}
requester_vpc_id = "#####"
accepter_vpc_id = "#####"
requester_vpc_cidr = "#####"
accepter_vpc_cidr = "#####"
tags = {
Environment = "Staging"
}
}
| Name | Version |
|---|---|
| terraform | >= 1 |
| aws | ~> 5.0 |
| Name | Version |
|---|---|
| aws | ~> 5.0 |
| aws.accepter_pcx_account | ~> 5.0 |
| Name | Type |
|---|---|
| aws_route.accepter | resource |
| aws_route.requester | resource |
| aws_vpc_peering_connection.pcx | resource |
| aws_vpc_peering_connection_accepter.accepter | resource |
| aws_vpc_peering_connection_options.accepter | resource |
| aws_vpc_peering_connection_options.requester | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| accepter_vpc_cidr | Accepter VPC CIDR | string |
n/a | yes |
| accepter_vpc_id | Accepter VPC ID | string |
n/a | yes |
| requester_vpc_cidr | Requester VPC CIDR | string |
n/a | yes |
| requester_vpc_id | Requester VPC ID | string |
n/a | yes |
| tags | A map of tags to assign to all resources. | map(string) |
n/a | yes |
| auto_accept | n/a | string |
"true" |
no |