Resource: aws_ec2_transit_gateway

Manages an EC2 Transit Gateway.

Example Usage

resource "aws_ec2_transit_gateway" "example" {
  description = "example"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import aws_ec2_transit_gateway using the EC2 Transit Gateway identifier. For example:

import {
  to = aws_ec2_transit_gateway.example
  id = "tgw-12345678"
}

Using terraform import, import aws_ec2_transit_gateway using the EC2 Transit Gateway identifier. For example:

% terraform import aws_ec2_transit_gateway.example tgw-12345678