This template associates an AWS Direct Connect connection with a Link Aggregation Group (LAG) using specified bandwidth and location.

Terraform Template

resource "aws_dx_connection" "example" {
  bandwidth = "1Gbps"
  location = "EqSe2-EQ"
  name = "example"
}

resource "aws_dx_connection_association" "example" {
  connection_id = aws_dx_connection.example.id
  lag_id = aws_dx_lag.example.id
}

resource "aws_dx_lag" "example" {
  connections_bandwidth = "1Gbps"
  location = "EqSe2-EQ"
  name = "example"
}