aws_dx_lag

Provides a Direct Connect LAG.

Example Usage

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

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the LAG.
  • connections_bandwidth - (Required) The bandwidth of the individual physical connections bundled by the LAG. Available values: 1Gbps, 10Gbps. Case sensitive.
  • location - (Required) The AWS Direct Connect location in which the LAG should be allocated. See DescribeLocations for the list of AWS Direct Connect locations. Use locationCode.
  • number_of_connections - (Deprecated) The number of physical connections initially provisioned and bundled by the LAG. Use aws_dx_connection and aws_dx_connection_association resources instead. Default connections will be removed as part of LAG creation automatically in future versions.
  • force_destroy - (Optional, Default:false) A boolean that indicates all connections associated with the LAG should be deleted so that the LAG can be destroyed without error. These objects are not recoverable.
  • tags - (Optional) A mapping of tags to assign to the resource.

Attributes Reference

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

  • id - The ID of the LAG.
  • arn - The ARN of the LAG.

Import

Direct Connect LAGs can be imported using the lag id, e.g.

$ terraform import aws_dx_lag.test_lag dxlag-fgnsp5rq

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/dx_lag.html