Skip to main content

Transit Gateway module for VM-Series

A Terraform module for deploying AWS Transit Gateways. The module does not use default route tables by design - specify all the route tables explicitly through respective input variables.

A transit gateway is a network transit hub that you can use to interconnect your virtual private clouds (VPCs) and on-premises networks. As your cloud infrastructure expands globally, inter-Region peering connects transit gateways together using the AWS Global Infrastructure.

GitHub Logo Terraform Logo

Usage

For example usage, please refer to the examples directory.

Reference

Requirements

NameVersion
terraform>= 1.0.0, < 2.0.0
aws~> 5.17

Providers

NameVersion
aws~> 5.17

Modules

No modules.

Resources

NameType
aws_ec2_transit_gateway.thisresource
aws_ec2_transit_gateway_route_table.thisresource
aws_ram_principal_association.thisresource
aws_ram_resource_association.thisresource
aws_ram_resource_share.thisresource
aws_ec2_transit_gateway.thisdata source
aws_ec2_transit_gateway_route_table.thisdata source

Inputs

NameDescriptionTypeDefaultRequired
asnBGP Autonomous System Number of the AWS Transit Gateway.number65200no
auto_accept_shared_attachmentsSee the provider documentation.stringnullno
createTrigger module mode between creating a new TGW or retrieving an existing one.booltrueno
dns_supportSee the provider documentation.stringnullno
idID of an existing Transit Gateway. Used in conjunction with create = false. When set, takes precedence over var.name.stringnullno
nameName tag for the Transit Gateway and associated resources.stringnullno
ram_resource_share_namen/aanynullno
route_tablesn/amap{}no
shared_principalsn/amap{}no
tagsOptional Map of arbitrary tags to apply to all resourcesmap(string){}no
transit_gateway_cidr_blocksOne or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.set(string)[]no
vpn_ecmp_supportSee the provider documentation.stringnullno

Outputs

NameDescription
nameTransit Gateway Name tag.
route_tablesTransit Gateway's route tables.
transit_gatewayThe entire object aws_ec2_transit_gateway.