Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

terraform-aws-tardigrade-transit-gateway/vpc-attachment

Terraform module for managing a Transit Gateway VPC Attachment. This module will manage the attachment, as well as any Transit Gateway route table association or propagations, and VPC routes.

Requirements

Name Version
terraform >= 0.13
aws >= 5.69.0

Providers

Name Version
aws >= 5.69.0

Resources

Name Type
aws_ec2_transit_gateway.this data source
aws_subnet.one data source

Inputs

Name Description Type Default Required
subnet_ids List of subnets to associate with the VPC attachment list(string) n/a yes
transit_gateway_id ID of the Transit Gateway string n/a yes
appliance_mode_support Whether Appliance Mode support is enabled. Valid values: disable, enable string "disable" no
cross_account Boolean whether this is a cross-account Transit Gateway shared via Resource Access Manager bool false no
dns_support Whether DNS support is enabled. Valid values: disable, enable string "enable" no
ipv6_support Whether IPv6 support is enabled. Valid values: disable, enable string "disable" no
security_group_referencing_support Whether Security Group Referencing Support is enabled. Valid values: disable, enable string "enable" no
tags Map of tags to apply to the TGW VPC attachment map(string) {} no
transit_gateway_default_route_table_association Boolean whether the VPC Attachment should be associated to the Transit Gateway default route table bool true no
transit_gateway_default_route_table_propagation Boolean whether the VPC Attachment should propagate routes to the Transit Gateway propagation default route table bool true no
transit_gateway_route_table_association ID of the Transit Gateway route table to associate with the VPC attachment (an attachment can be associated with a single TGW route table)
object({
transit_gateway_route_table_id = string
})
null no
transit_gateway_route_table_propagations List of Transit Gateway route tables this VPC attachment will propagate routes to
list(object({
# name is used as for_each key
name = string
transit_gateway_route_table_id = string
}))
[] no
vpc_routes List of VPC route objects with a target of the VPC attachment
list(object({
# name is used as for_each key
name = string
route_table_id = string
destination_cidr_block = optional(string)
destination_ipv6_cidr_block = optional(string)
destination_prefix_list_id = optional(string)
}))
[] no

Outputs

Name Description
route_table_association Object with the Transit Gateway route table association attributes
route_table_propagations Map of Transit Gateway route table propagation objects
vpc_attachment Object with the Transit Gateway VPC attachment attributes
vpc_routes Map of VPC route objects