--- id: aws-cdk-aws-elasticloadbalancing version: "1.204.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # aws-cdk.aws-elasticloadbalancing — The CDK Construct Library for AWS::ElasticLoadBalancing License: permissive · Maintenance: active · Downloads: 151.7K/mo ## What it is and what it does This package provides AWS CDK v1 constructs for defining classic Elastic Load Balancers in Python. It lets you declare load balancers, configure listeners on specific ports, set up health checks, and attach AutoScaling groups as targets—all as infrastructure-as-code rather than manual AWS console configuration. The package depends on aws-cdk.core and aws-cdk.aws-ec2, integrating with the broader CDK ecosystem. Critically, AWS CDK v1 reached end-of-support on 2023-06-01 and this package is no longer maintained. The last release was 2023-06-19. While the code remains functional and has no known vulnerabilities, AWS explicitly recommends migrating to AWS CDK v2 for new projects and existing deployments. Using this package locks you into a deprecated major version. Use it for: - Define classic load balancers and routing rules in CDK v1 projects that predate the v2 migration - Manage health checks and listener configuration for EC2-based fleets as code - Attach AutoScaling groups to load balancers with security group rules via CDK constructs ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides AWS CDK constructs for configuring and managing classic Elastic Load Balancers, including listeners, health checks, and target management. No, unless you are maintaining an existing AWS CDK v1 codebase. This package is end-of-support as of 2023-06-01 and no longer receives updates. New projects should use AWS CDK v2 and its corresponding elasticloadbalancing constructs instead. Adopting this package now would require a migration effort in the near term. ## Install pip install aws-cdk-aws-elasticloadbalancing uv add aws-cdk-aws-elasticloadbalancing poetry add aws-cdk-aws-elasticloadbalancing ## Installing aws-cdk.aws-elasticloadbalancing Before you install: Low install friction with stable dependencies. However, this package reached end-of-support on 2023-06-01 and is no longer being updated; AWS recommends migrating to AWS CDK v2 instead. License in practice: Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions. Quickstart: pip install aws-cdk.aws-elasticloadbalancing==1.204.0 from aws_cdk import aws_elasticloadbalancing as elb lb = elb.LoadBalancer(self, "LB", vpc=vpc, internet_facing=True, health_check=elb.HealthCheck(port=80) ) lb.add_target(my_auto_scaling_group) lb.add_listener(external_port=80) Requires Python 3.7 or later; AWS CDK v1 is end-of-support and users should plan migration to v2. Verify before relying: - Whether existing v1 code can coexist safely with v2 CDK packages in the same project - Specific migration effort and timeline for moving from v1 to v2 constructs ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 151.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags AWS CDK load balancer, elastic load balancing constructs, classic ELB infrastructure as code, CDK EC2 load balancer, AWS load balancer automation, aws-cdk, deprecated, infrastructure-as-code [View on SkillFed](https://skillfed.io/packages/aws-cdk-aws-elasticloadbalancing) · [View on PyPI](https://pypi.org/project/aws-cdk-aws-elasticloadbalancing/)