Resource: aws_networkmanager_transit_gateway_route_table_attachment

Creates a transit gateway route table attachment.

Example Usage

resource "aws_networkmanager_transit_gateway_route_table_attachment" "example" {
  peering_id                      = aws_networkmanager_transit_gateway_peering.example.id
  transit_gateway_route_table_arn = aws_ec2_transit_gateway_route_table.example.arn
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import aws_networkmanager_transit_gateway_route_table_attachment using the attachment ID. For example:

import {
  to = aws_networkmanager_transit_gateway_route_table_attachment.example
  id = "attachment-0f8fa60d2238d1bd8"
}

Using terraform import, import aws_networkmanager_transit_gateway_route_table_attachment using the attachment ID. For example:

% terraform import aws_networkmanager_transit_gateway_route_table_attachment.example attachment-0f8fa60d2238d1bd8