Transit Gateway
Terraform module to create AWS Transit Gateway resources
Inputs
29
amazon_side_asnoptionalstringThe Autonomous System Number (ASN) for the Amazon side of the gateway. By default the TGW is created with the current default Amazon ASN.
nullcreate_tgwoptionalboolControls if TGW should be created (it affects almost all resources)
truecreate_tgw_routesoptionalboolControls if TGW Route Table / Routes should be created
truedescriptionoptionalstringDescription of the EC2 Transit Gateway
nullenable_auto_accept_shared_attachmentsoptionalboolWhether resource attachment requests are automatically accepted
falseenable_default_route_table_associationoptionalboolWhether resource attachments are automatically associated with the default association route table
trueenable_default_route_table_propagationoptionalboolWhether resource attachments automatically propagate routes to the default propagation route table
trueenable_dns_supportoptionalboolShould be true to enable DNS support in the TGW
trueenable_encryption_supportoptionalboolShould be true to enable encryption support in the TGW
falseenable_multicast_supportoptionalboolWhether multicast support is enabled
falseenable_sg_referencing_supportoptionalboolIndicates whether to enable security group referencing support
trueenable_vpn_ecmp_supportoptionalboolWhether VPN Equal Cost Multipath Protocol support is enabled
truenameoptionalstringName to be used on all the resources as identifier
""ram_allow_external_principalsoptionalboolIndicates whether principals outside your organization can be associated with a resource share.
falseram_nameoptionalstringThe name of the resource share of TGW
""ram_principalsoptionallist(string)A list of principals to share TGW with. Possible values are an AWS account ID, an AWS Organizations Organization ARN, or an AWS Organizations Organization Unit ARN
[]ram_resource_share_arnoptionalstringARN of RAM resource share
""ram_tagsoptionalmap(string)Additional tags for the RAM
{}regionoptionalstringRegion where the resource(s) will be managed. Defaults to the region set in the provider configuration
nullshare_tgwoptionalboolWhether to share your transit gateway with other accounts
truetagsoptionalmap(string)A map of tags to add to all resources
{}tgw_default_route_table_tagsoptionalmap(string)Additional tags for the Default TGW route table
{}tgw_route_table_tagsoptionalmap(string)Additional tags for the TGW route table
{}tgw_tagsoptionalmap(string)Additional tags for the TGW
{}tgw_vpc_attachment_tagsoptionalmap(string)Additional tags for VPC attachments
{}timeoutsoptionalobject({ create = optional(string) update = optional(string) delete = optional(s…Create, update, and delete timeout configurations for the transit gateway
nulltransit_gateway_cidr_blocksoptionallist(string)One 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
[]transit_gateway_route_table_idoptionalstringIdentifier of EC2 Transit Gateway Route Table to use with the Target Gateway when reusing it between multiple TGWs
nullvpc_attachmentsoptionalanyMaps of maps of VPC details to attach to TGW. Type 'any' to disable type validation by Terraform.
{}All 29 are optional — the module deploys with none of them set.
Outputs
17
ec2_transit_gateway_arnEC2 Transit Gateway Amazon Resource Name (ARN)
ec2_transit_gateway_association_default_route_table_idIdentifier of the default association route table
ec2_transit_gateway_idEC2 Transit Gateway identifier
ec2_transit_gateway_owner_idIdentifier of the AWS account that owns the EC2 Transit Gateway
ec2_transit_gateway_propagation_default_route_table_idIdentifier of the default propagation route table
ec2_transit_gateway_route_idsList of EC2 Transit Gateway Route Table identifier combined with destination
ec2_transit_gateway_route_table_associationMap of EC2 Transit Gateway Route Table Association attributes
ec2_transit_gateway_route_table_association_idsList of EC2 Transit Gateway Route Table Association identifiers
ec2_transit_gateway_route_table_default_association_route_tableBoolean whether this is the default association route table for the EC2 Transit Gateway
ec2_transit_gateway_route_table_default_propagation_route_tableBoolean whether this is the default propagation route table for the EC2 Transit Gateway
ec2_transit_gateway_route_table_idEC2 Transit Gateway Route Table identifier
ec2_transit_gateway_route_table_propagationMap of EC2 Transit Gateway Route Table Propagation attributes
ec2_transit_gateway_route_table_propagation_idsList of EC2 Transit Gateway Route Table Propagation identifiers
ec2_transit_gateway_vpc_attachmentMap of EC2 Transit Gateway VPC Attachment attributes
ec2_transit_gateway_vpc_attachment_idsList of EC2 Transit Gateway VPC Attachment identifiers
ram_principal_association_idThe Amazon Resource Name (ARN) of the Resource Share and the principal, separated by a comma
ram_resource_share_idThe Amazon Resource Name (ARN) of the resource share
What the agent wires into the next module. An edge on the architecture diagram is one of these consumed by something else.