Skip to content

Resource: awsDxConnectionAssociation

Associates a Direct Connect Connection with a LAG.

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";
const awsDxConnectionExample = new aws.dxConnection.DxConnection(
  this,
  "example",
  {
    bandwidth: "1Gbps",
    location: "EqSe2-EQ",
    name: "example",
  }
);
const awsDxLagExample = new aws.dxLag.DxLag(this, "example_1", {
  connectionsBandwidth: "1Gbps",
  location: "EqSe2-EQ",
  name: "example",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsDxLagExample.overrideLogicalId("example");
const awsDxConnectionAssociationExample =
  new aws.dxConnectionAssociation.DxConnectionAssociation(this, "example_2", {
    connectionId: awsDxConnectionExample.id,
    lagId: awsDxLagExample.id,
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsDxConnectionAssociationExample.overrideLogicalId("example");

Argument Reference

The following arguments are supported:

  • connectionId - (Required) The ID of the connection.
  • lagId - (Required) The ID of the LAG with which to associate the connection.

Attributes Reference

No additional attributes are exported.