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-accepter

Terraform module for managing a Transit Gateway VPC Attachment Accepter. This module is used in a cross-account VPC attachment workflow. 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 >= 3.0

Providers

Name Version
aws >= 3.0

Resources

Name Type
aws_ec2_transit_gateway_attachment.this data source

Inputs

Name Description Type Default Required
transit_gateway_attachment_id ID of the TGW attachment string n/a yes
auto_accept_shared_attachments Whether resource attachment requests are automatically accepted (valid values: disable, enable) string "disable" no
tags Map of tags to apply to the TGW 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_accepter Object with the Transit Gateway VPC attachment accepter attributes
vpc_routes Map of VPC route objects