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

Terraform module to create a transit gateway attachment in one account and accept the attachment in the owner account

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-tardigrade-transit-gateway-attachment

This module assumes there are 2 accounts involved in the process. The first account is the owner of the transit gateway and has shared it with the second account. This module will attach a VPC that exists in the second account to the shared transit gateway and then go into the first account and accept the attachment.

Tests

Given the necessity of two accounts to test this module, the tests assume one of the AWS profiles used for credentials is called owner.

Inputs

Name Description Type Default Required
create_tgw_attachment Controls whether to create the TGW attachment bool "true" no
dns_support (Optional) Whether DNS support is enabled. Valid values: disable, enable. string "enable" no
name The name of the TGW attachment for tagging purposes string "null" no
owner_routes List of AWS route objects to create with the "owner" provider. Each route will be created with a target of the transit gateway. object <list> no
routes List of AWS route objects to create with the "aws" provider. Each route will be created with a target of the transit gateway. object <list> no
subnet_ids A list of subnets inside the VPC list <list> no
tags A map of tags to apply to the TGW attachment map <map> no
transit_gateway_id The ID of the Transit Gateway string "null" no
vpc_id VPC ID to attach to the TGW string "null" no

Outputs

Name Description
transit_gateway_attachment_id The ID of the Transit Gateway Attachment

About

Terraform module to create a transit gateway attachment in one account and accept the attachment in the owner account

License:Apache License 2.0


Languages

Language:HCL 49.2%Language:Makefile 40.5%Language:Go 10.2%