# Terraform add-on: VPC peering

Generated reference for the VPC peering add-on module.

### Requirements

| Name | Version |
| ---- | ------- |
| terraform | >= 1.14 |
| aws | ~> 6.0 |

### Providers

| Name | Version |
| ---- | ------- |
| aws.accepter | 6.54.0 |
| aws.requester | 6.54.0 |

### Resources

| Name | Type |
| ---- | ---- |
| [aws\_route.accepter](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route) | resource |
| [aws\_route.requester](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route) | resource |
| [aws\_vpc\_peering\_connection.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_peering_connection) | resource |
| [aws\_vpc\_peering\_connection\_accepter.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_peering_connection_accepter) | resource |
| [aws\_vpc\_peering\_connection\_options.accepter](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_peering_connection_options) | resource |
| [aws\_vpc\_peering\_connection\_options.requester](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_peering_connection_options) | resource |
| [aws\_caller\_identity.accepter](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws\_region.accepter](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |
| [aws\_region.requester](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |

### Inputs

| Name | Description | Type | Default | Required |
| ---- | ----------- | ---- | ------- | :------: |
| accepter | Accepter side — typically a spoke cluster's VPC. The accepter's AWS account ID and region are read from the provider's `data "aws_caller_identity"` and `data "aws_region"` data sources. | <pre>object(\{<br />    vpc\_id                  = string<br />    cidr\_block              = string<br />    private\_route\_table\_ids = list(string)<br />  })</pre> | n/a | yes |
| name | Name prefix for the peering resources (typically the customer's deployment name + the pair name, e.g. "crypto-vault-hub-to-spoke-0"). | `string` | n/a | yes |
| requester | Requester side of the peering — typically the hub cluster's VPC. | <pre>object(\{<br />    vpc\_id                  = string<br />    cidr\_block              = string<br />    private\_route\_table\_ids = list(string)<br />  })</pre> | n/a | yes |
| tags | Extra tags merged onto all peering resources. | `map(string)` | `{}` | no |

### Outputs

| Name | Description |
| ---- | ----------- |
| peering\_connection\_id | ID of the VPC peering connection. |
| peering\_status | Status of the peering connection (active when both sides are accepted). |
