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

https://github.com/rhythmictech/terraform-aws-transitgateway

Manage a Transit Gateway resource. Supports RAM.
https://github.com/rhythmictech/terraform-aws-transitgateway

aws networking terraform terraform-module transit-gateway

Last synced: 3 months ago
JSON representation

Manage a Transit Gateway resource. Supports RAM.

Awesome Lists containing this project

README

        

# terraform-aws-transitgateway

Manage a [Transit Gateway](https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html). Supports using Resource Access Manager to share a Transit Gateway across multiple accounts.

```
module "tgw" {
source = "git::https://github.com/rhythmictech/terraform-aws-transitgateway"
amazon_side_asn = 65400
description = "example"
subnet_ids = module.vpc.private_subnets
vpc_id = module.vpc.vpc_id
}
```

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.14 |
| [aws](#requirement\_aws) | >= 3.0 |

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 3.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_ec2_transit_gateway.tgw](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway) | resource |
| [aws_ec2_transit_gateway_vpc_attachment.tgw_attach](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_transit_gateway_vpc_attachment) | resource |
| [aws_ram_principal_association.tgw_ram_principal](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ram_principal_association) | resource |
| [aws_ram_resource_association.tgw_ram_resource](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ram_resource_association) | resource |
| [aws_ram_resource_share.tgw_share](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ram_resource_share) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [allow\_external\_principals](#input\_allow\_external\_principals) | Allow resources to be shared outside of your AWS org | `bool` | `false` | no |
| [amazon\_side\_asn](#input\_amazon\_side\_asn) | Amazon Side ASN | `number` | n/a | yes |
| [description](#input\_description) | Description used in Transit Gateway | `string` | n/a | yes |
| [name](#input\_name) | Name of transit gateway and related resources | `string` | `"tgw"` | no |
| [resource\_share\_accounts](#input\_resource\_share\_accounts) | Accounts to share gateway with (leave blank for none) | `list(string)` | `[]` | no |
| [subnet\_ids](#input\_subnet\_ids) | Subnets to create transit gateway in (must use one subnet for every AZ you wish to use the tgw in) | `list(string)` | `[]` | no |
| [tags](#input\_tags) | Tags to add to any resources that support it | `map(string)` | `{}` | no |
| [vpc\_id](#input\_vpc\_id) | VPC to create transit gateway in | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [transit\_gateway](#output\_transit\_gateway) | Transit Gateway Resource |
| [transit\_gateway\_id](#output\_transit\_gateway\_id) | ID of Transit Gateway |

## Related Projects
* [Transit Gateway Route CIDR](https://github.com/rhythmictech/terraform-aws-transitgateway-route-cidr)