This module is used to create the resources required for environments needing to use an existing transit gateway or creating a new transit gateway and update existing VPC route tables. It creates the transit gateway, transit gateway route table, transit gateway route, transit gateway attachment, and transit gateway route table associations required for ingress and egress traffic from nodes in an existing VPC to the transit gateway.
example uds runner usage:
# from the root of the repo
# The bootstrap and swf module should be run first, and backend files staged before running this module.
export ENV=dev
#or run
uds run set-env --set ENV=dev
# apply-transit-gateway will also run init
# do not need to set ENV if 'uds run set-env' was run previously
uds run main:apply-transit-gateway --set ENV=$ENV
Name |
Description |
Type |
Default |
Required |
bucket |
The name of the S3 bucket where the Terraform state file is stored |
string |
n/a |
yes |
key |
The name of the Terraform state file to retrieve state information from |
string |
n/a |
yes |
name |
Name, e.g. 'app' or 'jenkins' |
string |
"narwhal-delivery-iac-swf" |
no |
namespace |
Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |
string |
"du" |
no |
prefix |
name prefix to prepend to most resources, if not defined, created as: 'namespace-stage-name' |
string |
"" |
no |
region |
The AWS region to deploy into |
string |
n/a |
yes |
stage |
Stage, e.g. 'prod', 'staging', 'dev', or 'test' |
string |
"test" |
no |
suffix |
name suffix to append to most resources, if not defined, randomly generated |
string |
"" |
no |
tags |
A map of tags to apply to all resources |
map(string) |
{} |
no |
tgw_name |
The name of the Transit Gateway |
string |
"tgw" |
no |