AWSStatic-verified

Transit Gateway Hub with Explicit Routing

Hub-and-spoke Transit Gateway with its own route tables, VPC attachments, static and blackhole routes, and RAM sharing. Default route table association and propagation are off, so an attachment joins a routing domain because you said so rather than by default.

terraformAWSaws

Compare Transit Hub across clouds →

aws-transit-gatewayvizier v1.2.0

Verification

Static-verified

Passed: validated and lint-clean (provider-schema-validated for AWS/Azure/GCP; Terraform-language lint elsewhere).

Conformance

  • Static validation (fmt · validate · tflint)
  • Security scan clean (Checkov)
  • Plan tests (mocked: validation rules · outputs)

Provenance

  • SHA-256 checksum
  • Signature (pending)

Functional

  • Live test pending (no cloud run yet)

Last verified 2026-09-12 · how we verify

Use it from the registry

terraform · opentofu
module "transit_gateway" {
  source  = "www.iac-bazaar.com/iac-bazaar/aws-transit-gateway/aws"
  version = "1.0.0"
}

Needs a registry token from /account/tokens. The module itself is free; the account is what identifies you. Full setup: registry docs.

Cite it in your README

badge · attribution

Paste this beside the module in the repository that uses it. The badge is rendered from this artifact's verification record, so it reads static-verified because the record says so, and the link lands on this page.

README.md, GitLab, Gitea
[![IaC Bazaar: static-verified](https://www.iac-bazaar.com/api/artifacts/aws-transit-gateway/badge)](https://www.iac-bazaar.com/catalog/aws-transit-gateway?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)

Terraform module 1.0.0, static-verified on IaC Bazaar: [Transit Gateway Hub with Explicit Routing](https://www.iac-bazaar.com/catalog/aws-transit-gateway?utm_source=syndication&utm_medium=readme&utm_campaign=artifact)

```hcl
module "transit_gateway" {
  source  = "www.iac-bazaar.com/iac-bazaar/aws-transit-gateway/aws"
  version = "1.0.0"
}
```

Preview:IaC Bazaar: static-verified

Inputs & outputs

Create a free account to read this module's contract

The declared contract - every input name, type, default and description, plus every output - is shown to signed-in accounts, not to anonymous visitors.

A free account sees the contract of every module in the catalogue. There is no subscription and nothing to buy - the modules are free to download, and they run under Vizier.

Documentation

aws-transit-gateway

Transit Gateway hub with explicit route tables, VPC attachments, static and blackhole routes, and optional RAM sharing across an AWS Organization. Works with Terraform and OpenTofu (>= 1.6), AWS provider >= 6.0, < 7.0.

The gotcha this module exists to remove: a Transit Gateway created with its default route table association and propagation left on puts every attachment into one routing domain, so any VPC can reach any other the moment it attaches. Nothing errors when that happens - routes simply appear - which is why it ships to production so often. Here the defaults are off and every association is something you wrote down.

Secure defaults:

  • Default route table association and propagation disabled, on the gateway and again on each attachment
  • Attachment requests from shared accounts are not auto-accepted: an attachment is a route into your network
  • RAM shares refuse external principals; sharing reaches your organization or an OU, not the internet
  • Association and propagation are separate inputs, because what an attachment can REACH and who can reach IT are different decisions

Verification

Static validation runs tofu fmt, init, validate, tflint and checkov. This module has not yet had a live test: creating a Transit Gateway and attaching VPCs bills per attachment-hour, so it is published as statically validated with its live test pending, and the catalog says exactly that. It does not carry the live-tested mark and will not until a real apply -> verify -> destroy has run with confirmed teardown.

Usage code & full reference need an account

The complete copy-paste usage, the full input/output reference, and operational notes are free with an account - shown here and bundled in the download. Sign in and this section fills in.

  • Usage
  • Routing model
  • Inputs, outputs

Related modules

Static validatedLive test pending

aws-vpc-lattice

auth_type defaults to NONE, so any client in any associated VPC can call any service with no identity and no policy - and associating one more VPC silently grants everything in it. Defaults to AWS_IAM and requires per-VPC security groups.

View module
Live-tested

aws-vpc-peering

A VPC peering between two VPCs in one account and region, accepted in the same apply, with DNS resolution across it and routes written in every listed route table on both sides for every CIDR of the other. A default route through a peering is refused (CKV2_AWS_44). Peering is not transitive; past a handful of VPCs the transit gateway is the product.

View module
Static validatedLive test pending

aws-client-vpn

Remote-access VPN endpoint with certificate or SAML authentication, split tunnelling, per-group authorization rules and connection logging. There is no allow-all shortcut: an endpoint with no rule reaches nothing.

View module
Live-tested

aws-cloud-map

Private DNS, public DNS or API-only namespaces and the services registered in them. Documents the health-check trap: a private namespace gets a custom check that something else must update, and one nobody updates reports healthy forever.

View module
Static validatedLive test pending

aws-cloud-wan

A global network whose segments, routing and attachment placement live in one policy document rather than per-region route tables. The policy VERSION is executed as a second step, so a change cannot report success while the network still runs the previous one.

View module
Static validatedLive test pending

aws-direct-connect

Gateway, connections, virtual interfaces and associations. A private circuit is a private path, not a private conversation: traffic crosses it in clear text unless MACsec is on, and should_encrypt quietly falls back to clear text.

View module