aws-cdk.aws-elasticloadbalancing
The CDK Construct Library for AWS::ElasticLoadBalancing
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 on this page — 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
aws-cdk-aws-elasticloadbalancing on PyPI
pip
pip install aws-cdk-aws-elasticloadbalancinguv
uv add aws-cdk-aws-elasticloadbalancingpoetry
poetry add aws-cdk-aws-elasticloadbalancingInstalling 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 the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — aws-cdk.aws-ec2, aws-cdk.core, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 151,718/month — #10,923 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk.aws_elasticloadbalancing-1.204.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
aws-cdk.aws-elasticloadbalancingv2Provides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-globalacceleratorProvides AWS CDK constructs to define and…
permissive · top 15,000 on PyPI
aws-cdk.aws-autoscaling-commonProvides shared internal implementation details…
permissive · top 15,000 on PyPI
awsebcliEB CLI is a command-line tool for deploying,…
permissive · top 15,000 on PyPI
aws-cdk.aws-autoscalingProvides CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-efsProvides CDK constructs to define Amazon EFS…
permissive · top 15,000 on PyPI
aws-cdk.aws-ecsProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-imagebuilderProvides AWS CDK L1 constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-servicediscoveryProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-ec2Provides AWS CDK constructs for defining EC2…
permissive · top 15,000 on PyPI