tgw

DrFaust92/tgw/aws

Terraform Module HCL AWS

Terraform module which creates TGW resources on AWS

Install
module "tgw" {
source = "DrFaust92/tgw/aws"
version = "1.0.2"
}
plain text: /constructs/tfmod-drfaust92-tgw-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

AWS TGW Terraform module Terraform module which creates Transit Gateway resources on AWS. Usage ``hcl module "vpc" { source = "terraform-aws-modules/vpc/aws" name = "my-vpc" cidr = "10.0.0.0/16" azs = ["eu-west-1a", "eu-west-1b", "eu-west-1c"] private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] tags = { Terraform = "true" Environment = "dev" } } module "tgw" { source = "DrFaust92/tgw/aws" name = "my-tgw" auto_accept_attachments = true tags = { Terraform = "true" Environment = "dev" } } resource "aws_ec2_transit_gateway_vpc_attachment" "tgw-vpc-att" { subnet_ids = "${module.vpc.private_subnets}" transit_gateway_id = "${module.tgw.tgw_id}" vpc_id = "${module.vpc.vpc_id}" } ` External Accounts When Accounts are not in the same Organization or RAM Sharing with AWS Organizations is

Inputs (14)
NameTypeDescriptionDefault
enable_default_route_table_associationstringWhether resource attachments are automatically associated with the default assoctrue
create_tgwstringControls if TGW should be created (it affects almost all resources)true
namestringName to be used on all the resources as identifier""
enable_dns_supportstringShould be true to enable DNS support in the TGWtrue
amazon_side_asnstringThe Autonomous System Number (ASN) for the Amazon side of the gateway. By defaul"64512"
tagsmapA map of tags to add to all resources{}
auto_accept_attachmentsstringWhether resource attachment requests are automatically acceptedfalse
ram_tagsmapAdditional tags for the RAM{}
allow_external_principalsstringShould be true to enable Allow External Principalsfalse
ram_share_principalslistA list of principals to share TGW with. Possible values are an AWS account ID, a[]
tgw_tagsmapAdditional tags for the TGW{}
enable_default_route_table_propagationstringWhether resource attachments automatically propagate routes to the default propatrue
tgw_route_table_tagsmapAdditional tags for the TGW route table{}
share_tgwstringWhether to share your transit gateway with other accountstrue
Outputs (7)
tgw_route_table_id — The ID of the TGW route table
ram_share_id — The ID of the RAM Share
ram_share_arn — The ARN of the RAM Share
ram_resource_association_id — The ID of the RAM Resource Association
ram_principal_association_ids — Map of Principal of to the RAM Principal Association ID
tgw_id — The ID of the TGW
tgw_arn — The ARN of the TGW
Resources (5)
aws_ec2_transit_gatewayaws_ec2_transit_gateway_route_tableaws_ram_principal_associationaws_ram_resource_associationaws_ram_resource_share
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.2
Cloud AWS
★ Stars1
Forks1
Total downloads6.5k
Inputs14
Outputs7
Resources5
LicenseNOASSERTION
NamespaceDrFaust92
Updated