Resource: aws_ec2_transit_gateway_connect

Manages an EC2 Transit Gateway Connect.

Example Usage

resource "aws_ec2_transit_gateway_vpc_attachment" "example" {
  subnet_ids         = [aws_subnet.example.id]
  transit_gateway_id = aws_ec2_transit_gateway.example.id
  vpc_id             = aws_vpc.example.id
}

resource "aws_ec2_transit_gateway_connect" "attachment" {
  transport_attachment_id = aws_ec2_transit_gateway_vpc_attachment.example.id
  transit_gateway_id      = aws_ec2_transit_gateway.example.id
}

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_connect using the EC2 Transit Gateway Connect identifier. For example:

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

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

% terraform import aws_ec2_transit_gateway_connect.example tgw-attach-12345678