Resource: aws_dx_lag

Provides a Direct Connect LAG. Connections can be added to the LAG via the aws_dx_connection and aws_dx_connection_association resources.

Example Usage

resource "aws_dx_lag" "hoge" {
  name                  = "tf-dx-lag"
  connections_bandwidth = "1Gbps"
  location              = "EqDC2"
  force_destroy         = true
}

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

import {
  to = aws_dx_lag.test_lag
  id = "dxlag-fgnsp5rq"
}

Using terraform import, import Direct Connect LAGs using the LAG id. For example:

% terraform import aws_dx_lag.test_lag dxlag-fgnsp5rq