Skip to content

rhythmictech/terraform-aws-pcx

Repository files navigation

terraform-aws-pcx

tflint tfsec yamllint misspell pre-commit-check follow on Twitter

Create route table entries associated with a Peering Connection.

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 >= 0.13
aws >= 3

Providers

Name Version
aws 4.56.0

Modules

No modules.

Resources

Name Type
aws_vpc_peering_connection.pcx resource

Inputs

Name Description Type Default Required
name Name of peering connection resource string "pcx" no
peer_owner_id PCX Peer Owner Account ID string n/a yes
peer_region PCX Peer Region string n/a yes
peer_vpc_id PCX Peer VPC string n/a yes
tags Tags to add to supported resources map(string) {} no
vpc_id PCX VPC string n/a yes

Outputs

Name Description
pcx_id The ID of the VPC

Related Projects