https://github.com/rhythmictech/terraform-aws-pcx
Create route table entries associated with a Peering Connection.
https://github.com/rhythmictech/terraform-aws-pcx
aws terraform terraform-module terraform-modules
Last synced: 12 months ago
JSON representation
Create route table entries associated with a Peering Connection.
- Host: GitHub
- URL: https://github.com/rhythmictech/terraform-aws-pcx
- Owner: rhythmictech
- License: mit
- Created: 2019-06-09T14:25:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T19:38:06.000Z (almost 3 years ago)
- Last Synced: 2025-01-08T11:41:00.310Z (about 1 year ago)
- Topics: aws, terraform, terraform-module, terraform-modules
- Language: HCL
- Homepage: https://registry.terraform.io/modules/rhythmictech/pcx/aws
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# terraform-aws-pcx
[](https://github.com/rhythmictech/terraform-aws-pcx/actions?query=workflow%3Atflint+event%3Apush+branch%3Amaster)
[](https://github.com/rhythmictech/terraform-aws-pcx/actions?query=workflow%3Atfsec+event%3Apush+branch%3Amaster)
[](https://github.com/rhythmictech/terraform-aws-pcx/actions?query=workflow%3Ayamllint+event%3Apush+branch%3Amaster)
[](https://github.com/rhythmictech/terraform-aws-pcx/actions?query=workflow%3Amisspell+event%3Apush+branch%3Amaster)
[](https://github.com/rhythmictech/terraform-aws-pcx/actions?query=workflow%3Apre-commit-check+event%3Apush+branch%3Amaster)

Create route table entries associated with a [Peering Connection](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html).
Example:
```
module "pcx" {
source = "git::https://github.com/rhythmictech/terraform-aws-pcx"
name = "SourceAccount-VPC<=>DescAccount-VPC"
peer_owner_id = "0123456789012"
peer_region = "us-east-1"
peer_vpc_id = "vpc-01234567a"
vpc_id = module.vpc.vpc_id
}
```
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13 |
| [aws](#requirement\_aws) | >= 3 |
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 4.56.0 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_vpc_peering_connection.pcx](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_peering_connection) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [name](#input\_name) | Name of peering connection resource | `string` | `"pcx"` | no |
| [peer\_owner\_id](#input\_peer\_owner\_id) | PCX Peer Owner Account ID | `string` | n/a | yes |
| [peer\_region](#input\_peer\_region) | PCX Peer Region | `string` | n/a | yes |
| [peer\_vpc\_id](#input\_peer\_vpc\_id) | PCX Peer VPC | `string` | n/a | yes |
| [tags](#input\_tags) | Tags to add to supported resources | `map(string)` | `{}` | no |
| [vpc\_id](#input\_vpc\_id) | PCX VPC | `string` | n/a | yes |
## Outputs
| Name | Description |
|------|-------------|
| [pcx\_id](#output\_pcx\_id) | The ID of the VPC |
## Related Projects
* [Peering Connection Route Table Entry](https://github.com/rhythmictech/terraform-aws-pcx-route-cidr)