Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 4.1 KB

File metadata and controls

77 lines (59 loc) · 4.1 KB

transit-gateway

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.

Pre-requisites

Usage

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

Requirements

Name Version
terraform >= 1.0.0
aws >= 5.30.0
random >= 3.1.0

Providers

Name Version
random >= 3.1.0
terraform n/a

Modules

Name Source Version
transit_gateway git::https://github.com/defenseunicorns/terraform-aws-transit-gateway.git v0.0.3
transit_gateway_attachment git::https://github.com/defenseunicorns/terraform-aws-transit-gateway.git v0.0.3

Resources

Name Type
random_id.default resource
terraform_remote_state.swf_state data source

Inputs

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

Outputs

Name Description
route_config_map n/a
transit_gateway_attachment n/a
vpc_name n/a