From the course: Terraform: Managing Network Infrastructure
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Scaling the network with Terraform and Transit Gateway - Terraform Tutorial
From the course: Terraform: Managing Network Infrastructure
Scaling the network with Terraform and Transit Gateway
- [Instructor] Transit gateway, or TGW for short, enables you to interconnect VPCs and on-premises networks using attachments. When it comes to scale, especially for the enterprise, transit gateway really shines. I removed our configuration for VPC peering, and in this video, we're going to connect our VPCs with transit gateway using Terraform. And with our configuration, we're going to run with some of the defaults and propagate routes to the route table of the TGW. This will let all of our VPCs talk in a full mesh type of scenario, and we're going to look at two different resources in particular. First, we need to create the transit gateway itself, and then we're going to use a VPC attachment to connect both of our VPCs to the transit gateway. The TGW configuration is pretty simple here. Since we're rolling with the defaults, I'm just providing a description and a tag for the name. For the VPC attachment, though, we…