# transit-gateway-local-vpc-attachment-routes

## Overview

Manages the routes of local VPC transit gateway attachment.

## Usage

The VPC attachment must first be created separately.

### Routing

The module will manage a dedicated route table for the VPC attachment.

The routes for this route table can be provided using one or both of the `routes` and `managed_prefix_list_references`
variables.

### Example

```
module "transit_gateway_attachment" {
  source = "git@github.com:theorchard/terraform-transit-gateway.git//modules/transit-gateway-local-vpc-attachment-routes?ref=X.X.X"

  environment = "networking"
  vpc_id      = "some-vpc-id"

  routes = {
    "10.0.0.0/16" = "tgw-attach-00000000000000000"
    "10.1.0.0/16" = "tgw-attach-11111111111111111"
  }

  managed_prefix_list_references = {
    "pl-00000000000000000" = "tgw-attach-22222222222222222"
    "pl-11111111111111111" = "tgw-attach-33333333333333333"
  }
}
```
