Skip to content

Data Source: awsLbs

Use this data source to get a list of Load Balancer ARNs matching the specified criteria. Useful for passing to other resources.

Example Usage

Basic 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.dataAwsLbs.DataAwsLbs(this, "example", {
  tags: {
    "elbv2.k8s.aws/cluster": "my-cluster",
  },
});

Argument Reference

The following arguments are optional:

  • tags - (Optional) Map of tags, each pair of which must exactly match a pair on the desired Load Balancers.

Attributes Reference

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

  • arns - Set of Load Balancer ARNs.