aws-cdk.aws-elasticloadbalancingv2
The CDK Construct Library for AWS::ElasticLoadBalancingV2
Decision gist · record as of 2026-08-14
No—unless you are maintaining an existing AWS CDK v1 codebase. This package is end-of-support as of 2023-06-01 and receives no updates. New projects should use AWS CDK v2's equivalent load balancer constructs instead. If you are already on v1, the package is stable and has no known vulnerabilities, but migration is strongly recommended.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an AWS CDK environment set up with a VPC and compute targets (e.g., AutoScaling group) already defined in the same stack.
- Low install friction with a pure-Python wheel.
- However, this is an AWS CDK v1 package that reached end-of-support on 2023-06-01 and is no longer being updated; users should migrate to AWS CDK v2 instead.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
last release 2023-06-19 (1152 days) · last repo commit 2026-08-14 · 12,868 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 154,895 downloads/mo, #10,840 on PyPI
Alternatives
Verify before relying
from aws_cdk import aws_elasticloadbalancingv2 as elbv2
from aws_cdk import aws_ec2 as ec2
lb = elbv2.ApplicationLoadBalancer(self, "LB",
vpc=vpc,
internet_facing=True
)
listener = lb.add_listener("Listener", port=80, open=True)
listener.add_targets("Targets", port=8080, targets=[asg])- Whether migration tooling or compatibility layers exist to ease transition from v1 to v2.
- Current adoption rate and community support for v1 despite end-of-support status.
What it is and what it does
This package provides Python constructs for the AWS CDK v1 framework that abstract AWS Elastic Load Balancing V2 resources—Application Load Balancers (ALBs) and Network Load Balancers (NLBs)—into reusable, composable components. You instantiate a load balancer, attach listeners on specific ports, define target groups, and wire routing rules (including path-based, host-based, and weighted routing) without writing CloudFormation templates directly.
The package depends on 15 other AWS CDK modules (core, EC2, IAM, Lambda, Route53, S3, CloudWatch, Certificate Manager, and others) to provide the full infrastructure abstraction layer. However, AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer receiving updates; the maintainers strongly recommend migrating to AWS CDK v2 for ongoing support and new features.
Use it for
- Define an internet-facing ALB with HTTP/HTTPS listeners and route traffic to Auto Scaling groups based on hostname or URL path.
- Create an NLB for ultra-high-performance, low-latency load balancing of TCP/UDP traffic across multiple availability zones.
- Set up listener conditions and weighted target groups to implement canary deployments or A/B testing within infrastructure code.
- Configure OIDC authentication at the load balancer level before forwarding requests to application targets.
- Automatically manage security group rules between load balancers and targets without manual network configuration.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—unless you are maintaining an existing AWS CDK v1 codebase.
This package is end-of-support as of 2023-06-01 and receives no updates. New projects should use AWS CDK v2's equivalent load balancer constructs instead. If you are already on v1, the package is stable and has no known vulnerabilities, but migration is strongly recommended.
Install
aws-cdk-aws-elasticloadbalancingv2 on PyPI
Before you install
Low install friction with a pure-Python wheel. However, this is an AWS CDK v1 package that reached end-of-support on 2023-06-01 and is no longer being updated; users should migrate to AWS CDK v2 instead.
Requires an AWS CDK environment set up with a VPC and compute targets (e.g., AutoScaling group) already defined in the same stack.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
from aws_cdk import aws_elasticloadbalancingv2 as elbv2
from aws_cdk import aws_ec2 as ec2
lb = elbv2.ApplicationLoadBalancer(self, "LB",
vpc=vpc,
internet_facing=True
)
listener = lb.add_listener("Listener", port=80, open=True)
listener.add_targets("Targets", port=8080, targets=[asg])
Verify before relying
- Whether migration tooling or compatibility layers exist to ease transition from v1 to v2.
- Current adoption rate and community support for v1 despite end-of-support status.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release ~=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 15 packagesaws-cdk.aws-certificatemanageraws-cdk.aws-cloudwatchaws-cdk.aws-ec2aws-cdk.aws-iamaws-cdk.aws-lambdaaws-cdk.aws-route53aws-cdk.aws-s3aws-cdk.cloud-assembly-schemaaws-cdk.coreaws-cdk.cx-apiaws-cdk.region-infoconstructsjsiipublicationtypeguard |
| Maintenance | Actively maintained 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 154,895 / month, #10,840 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 7 - InactiveFramework :: AWS CDKFramework :: AWS CDK :: 1Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed |
Evidence: aws_cdk.aws_elasticloadbalancingv2-1.204.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “aws load balancer cdk”
- aws-cdk.aws-elasticloadbalancingv2Provides AWS CDK constructs for defining and configuring Application…
- aws-cdk.aws-elasticloadbalancingProvides AWS CDK constructs for configuring and managing classic…
- aws-cdk.aws-route53-targetsProvides Route53 alias record targets for AWS CDK constructs,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also aws-cdk.aws-elasticloadbalancing · aws-cdk.aws-autoscaling · aws-cdk.aws-ec2 · aws-cdk.aws-globalaccelerator · aws-cdk.aws-ecs · aws-cdk.aws-efs · aws-cdk.aws-cloudfront · aws-cdk.aws-sam · aws-cdk.aws-cognito · roundrobin