network-hubandspoke
aws-ia/network-hubandspoke/aws
AWS Hub and Spoke Architecture with AWS Transit Gateway - Terraform Module AWS Transit Gateway is a network hub that you can use to interconnect your VPCs and on-premises networks. With it, you can create hub and spoke architectures to control how your VPCs and on-prem resources communicate between them. In addition, you can centralize different services - like traffic inspection or the connection to VPC endpoints - and therefore avoid extra costs by overprovisioning those services. This Terraform module helps you create the base of your networking infrastructure in AWS, by provisioning a Hub and Spoke Architecture with AWS Transit Gateway. You can indicate which resources you want to centralize - by defining which central VPCs you want to create -, and you get the Transit Gateway, VPCs, a
| Name | Type | Description | Default |
|---|---|---|---|
| identifier | string | String to identify the whole Hub and Spoke environment. | required |
| network_definition | object({ type = string | "Definition of the IPv4 CIDR configuration. The definition is done by using two | required |
| tags | map(string) | Tags to apply to all resources. | {} |
| transit_gateway_id | string | Transit Gateway ID. **If you specify this value, transit_gateway_attributes can' | null |
| transit_gateway_attributes | any | Attributes about the new Transit Gateway to create. **If you specify this value, | {} |
| central_vpcs | any | Configuration of the Central VPCs - used to centralized different services. You | {} |
| spoke_vpcs | any | Variable used to provide the information about the Spoke VPCs to include in the | {} |
transit_gateway — AWS Transit Gateway resource. Check the resource in the Terraform Registry - [aws_ec2_transit_gatewacentral_vpcs — Central VPCs created. Check the [AWS VPC Module](https://github.com/aws-ia/terraform-aws-vpc) READMEtransit_gateway_route_tables — Transit Gateway Route Tables. The format of the output is the following one:
```
transit_gateway_roaws_network_firewall — AWS Network Firewall resource. Check the resource in the Terraform Registry - [aws_networkfirewall_f