Skip to content

Resource: awsDxGateway

Provides a Direct Connect Gateway.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dxGateway.DxGateway(this, "example", {
  amazonSideAsn: "64512",
  name: "tf-dxg-example",
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the connection.
  • amazonSideAsn - (Required) The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The ID of the gateway.
  • ownerAccountId - AWS Account ID of the gateway.

Timeouts

Configuration options:

  • create - (Default 10M)
  • delete - (Default 10M)

Import

Direct Connect Gateways can be imported using the gatewayId, e.g.,

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