AWS Amazon EC2 Transit Gateway Route Table

This page shows how to write Terraform and CloudFormation for Amazon EC2 Transit Gateway Route Table and write them securely.

aws_ec2_transit_gateway_route_table (Terraform)

The Transit Gateway Route Table in Amazon EC2 can be configured in Terraform with the resource name aws_ec2_transit_gateway_route_table. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

github-iconannagtaraujo/Terraform-TGW-with-VPN
resource "aws_ec2_transit_gateway_route_table" "tgw_rt_a" {
  transit_gateway_id = aws_ec2_transit_gateway.tgw.id
  tags               = {
    Name             = "Route-Table-TGW-A"
  }
  depends_on = [aws_ec2_transit_gateway.tgw]
github-iconrafaelleonardocruz/tgw-example
resource "aws_ec2_transit_gateway_route_table" "shared-services" {
  transit_gateway_id = aws_ec2_transit_gateway.this.id

  tags = {
    Name = "SharedServices"
    Environment = "sharedservices"

Parameters

Explanation in Terraform Registry

Manages an EC2 Transit Gateway Route Table.

AWS::EC2::TransitGatewayRouteTable (CloudFormation)

The TransitGatewayRouteTable in EC2 can be configured in CloudFormation with the resource name AWS::EC2::TransitGatewayRouteTable. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

Specifies a route table for a transit gateway.

Frequently asked questions

What is AWS Amazon EC2 Transit Gateway Route Table?

AWS Amazon EC2 Transit Gateway Route Table is a resource for Amazon EC2 of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon EC2 Transit Gateway Route Table?

For Terraform, the annagtaraujo/Terraform-TGW-with-VPN and rafaelleonardocruz/tgw-example source code examples are useful. See the Terraform Example section for further details.