How can I lookup an existing classic load balancer (CLB) via the ARN with the AWS CDK for Python?

Viewed 308
1 Answers

It is a missing feature.

Other tools like Pulumi (based on Terraform) have been able to do it via the ARN of the CLB.

Terraform itself can do it via the name of the CLB.


The docs should be similar across the board but just to double-check this, the CDK API docs for ELB v2 show that you can lookup application load balancers (ALBs) and network load balancers (NLBs) as you've mentioned.

Similarly (to cross out possible language-specific CDK implementations), I looked through the entire CDK API docs for ELB v1 which refers to classic load balancers (CLBs). There are no lookup methods.


Considering Terraform has done this, it means that there must be an AWS API for it - perhaps try seeing if you can use AwsSdkCall to make a custom call and obtain the data needed.

Related