An open API service indexing awesome lists of open source software.

https://github.com/keisukeyamashita/terraform-aws-vpc-peering-connector

This module creates an AWS VPC peering connector and route
https://github.com/keisukeyamashita/terraform-aws-vpc-peering-connector

aws module terraform vpc vpc-peering

Last synced: 6 months ago
JSON representation

This module creates an AWS VPC peering connector and route

Awesome Lists containing this project

README

          

# AWS VPC Peering Connector module

This module creates an AWS VPC peering connector and route.

## Usage

```hcl
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
}
```

## Requirements

| Name | Version |
|------|---------|
| terraform | >= 0.12.0, < 0.14 |
| aws | >= 3.0, < 4.0 |

## Inputs

| 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 |

## Author

* [KeisukeYamashita](https://github.com/KeisukeYamashita)

## License

Apache 2.0 Licensed. See LICENSE for full details.