Resource: aws_dx_gateway

Provides a Direct Connect Gateway.

Example Usage

resource "aws_dx_gateway" "example" {
  name            = "tf-dxg-example"
  amazon_side_asn = "64512"
}

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 Direct Connect Gateways using the gateway id. For example:

import {
  to = aws_dx_gateway.test
  id = "abcd1234-dcba-5678-be23-cdef9876ab45"
}

Using terraform import, import Direct Connect Gateways using the gateway id. For example:

% terraform import aws_dx_gateway.test abcd1234-dcba-5678-be23-cdef9876ab45