Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 4.19 KB

File metadata and controls

57 lines (44 loc) · 4.19 KB

create-tgw-vpc-attachment

Attaches a VPC to an AWS Transit Gateway, associates and propagates the attachment into the appropriate route tables, and adds VPC-side supernet routes to enable east-west traffic across cells and regions.

Requirements

Name Version
terraform >= 1.14.4
aws >= 6.31.0

Providers

Name Version
aws 6.35.1

Modules

No modules.

Resources

Name Type
aws_ec2_transit_gateway_route_table_association.this resource
aws_ec2_transit_gateway_route_table_propagation.this resource
aws_ec2_transit_gateway_route_table_propagation.wan resource
aws_ec2_transit_gateway_vpc_attachment.this resource
aws_route.tgw resource

Inputs

Name Description Type Default Required
appliance_mode_support Enable appliance mode support for the attachment string "disable" no
default_tags Standard project tags map(string) n/a yes
dns_support Enable DNS support for the attachment string "enable" no
environment Environment name (dev, prod, shared) string n/a yes
private_route_table_ids Map of private route table IDs (key → rtb-id) to add a TGW supernet route to. Required for VPC instances to send east-west traffic through the TGW. map(string) {} no
region_short Short region code (e.g., euw2) string n/a yes
subnet_ids Subnet IDs for the attachment (one per AZ) list(string) n/a yes
tgw_supernet_cidr Supernet CIDR routed to the TGW from each private subnet route table (e.g. 10.0.0.0/8 covers all cells across all regions). string "10.0.0.0/8" no
transit_gateway_id Transit Gateway ID to attach to string n/a yes
transit_gateway_route_table_id Transit Gateway route table ID to associate with string n/a yes
transit_gateway_wan_route_table_id WAN route table ID to also propagate this attachment into. Required for inbound cross-region delivery via TGW peering. Leave null if peering is not used. string null no
vpc_id VPC ID to attach string n/a yes
vpc_name Name of the VPC for attachment naming string n/a yes

Outputs

Name Description
attachment_id VPC attachment ID
vpc_attachment Full VPC attachment resource object