transit-gateway

cloudposse/transit-gateway/aws

Terraform Module HCL AWS

Terraform module to provision AWS Transit Gateway, AWS Resource Access Manager (AWS RAM) Resource, and share the Transit Gateway with the Organization or another AWS Account.

Install
module "transit-gateway" {
source = "cloudposse/transit-gateway/aws"
version = "0.13.0"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform module to provision: - AWS Transit Gateway - AWS Resource Access Manager (AWS RAM) Resource Share to share the Transit Gateway with the Organization or another AWS Account (configurable via the variables ram_resource_share_enabled and ram_principals) - Transit Gateway route table - Transit Gateway VPC attachments to connect multiple VPCs via the Transit Gateway - Transit Gateway route table propagations to create propagated routes and allow traffic from the Transit Gateway to the VPC attachments - Transit Gateway route table associations to allow traffic from the VPC attachments to the Transit Gateway - Transit Gateway static routes (static routes have a higher precedence than propagated routes) - Subnet routes to route traffic from the subnets in each VPC to the other Transit Ga

Inputs (42)
NameTypeDescriptionDefault
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
default_route_table_propagationstringWhether resource attachments automatically propagate routes to the default propa"disable"
configmap(object({ vpc_id Configuration for VPC attachments, Transit Gateway routes, and subnet routesnull
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
security_group_referencing_support_enabledboolEnable or disable support for referencing security groups across VPCs in the trafalse
create_transit_gateway_vpc_attachmentboolWhether to create Transit Gateway VPC Attachmentstrue
route_keys_enabledboolIf true, Terraform will use keys to label routes, preventing unnecessary changesfalse
enabledboolSet to false to prevent the module from creating any resourcesnull
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
ram_principalstringDEPRECATED, please use ram_principals instead. The principal to associate with null
auto_accept_shared_attachmentsstringWhether resource attachment requests are automatically accepted. Valid values: `"enable"
existing_transit_gateway_idstringExisting Transit Gateway ID. If provided, the module will not create a Transit Gnull
create_transit_gateway_route_tableboolWhether to create a Transit Gateway Route Table. If set to `false`, an existing true
transit_gateway_descriptionstringTransit Gateway description. If not provided, one will be automatically generate""
vpc_attachment_appliance_mode_supportstringWhether Appliance Mode support is enabled. If enabled, a traffic flow between a "disable"
… and 2 more inputs
Outputs (9)
subnet_route_ids — Subnet route identifiers combined with destinations
transit_gateway_route_table_id — Transit Gateway route table ID
transit_gateway_vpc_attachment_ids — Transit Gateway VPC attachment IDs
ram_resource_share_id — RAM resource share ID
transit_gateway_arn — Transit Gateway ARN
transit_gateway_id — Transit Gateway ID
transit_gateway_association_default_route_table_id — Transit Gateway association default route table ID
transit_gateway_propagation_default_route_table_id — Transit Gateway propagation default route table ID
transit_gateway_route_ids — Transit Gateway route identifiers combined with destinations
Resources (8)
aws_ec2_transit_gatewayaws_ec2_transit_gateway_route_tableaws_ec2_transit_gateway_route_table_associationaws_ec2_transit_gateway_route_table_propagationaws_ec2_transit_gateway_vpc_attachmentaws_ram_principal_associationaws_ram_resource_associationaws_ram_resource_share
Details
FrameworkTerraform Module
LanguageHCL
Version0.13.0
Cloud AWS
★ Stars63
Forks57
Total downloads460.3k
Inputs42
Outputs9
Resources8
Examples2
Submodules2
LicenseApache-2.0
Namespacecloudposse
Updated