aws-cdk.aws-autoscaling-hooktargets
Lifecycle hook for AWS AutoScaling
What it is and what it does
This package provides integration classes for AWS AutoScaling lifecycle hooks within the AWS CDK v1 framework. It allows you to attach hook targets—Lambda functions, SNS topics, or SQS queues—to AutoScaling groups so that custom logic runs when instances launch or terminate. The classes are designed to be passed directly to the `addLifecycleHook()` method on an AutoScaling group, bridging the gap between CDK infrastructure definitions and AWS lifecycle hook mechanics.
The package depends on core CDK modules (aws-autoscaling, aws-iam, aws-lambda, aws-sns, aws-sqs) and related utilities. However, AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer receiving updates. Users should plan migration to AWS CDK v2, which may offer equivalent or improved lifecycle hook functionality.
Use it for:
- Trigger a Lambda function to run custom setup or cleanup logic when instances join or leave an AutoScaling group.
- Publish lifecycle events to an SNS topic for downstream notification or event-driven workflows.
- Send instance lifecycle messages to an SQS queue for asynchronous processing by worker applications.
- Implement graceful instance shutdown by pausing lifecycle hooks while running cleanup tasks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides integration classes for AWS AutoScaling lifecycle hooks that trigger Lambda functions, SNS topics, or SQS queues when instances launch or terminate.
No—do not install. AWS CDK v1 reached end-of-support on 2023-06-01 and this package is no longer maintained. New projects should use AWS CDK v2 instead. If you are maintaining legacy CDK v1 code, the package is stable and has no known vulnerabilities, but migration is strongly recommended.
Install
aws-cdk-aws-autoscaling-hooktargets on PyPI
pip
pip install aws-cdk-aws-autoscaling-hooktargetsuv
uv add aws-cdk-aws-autoscaling-hooktargetspoetry
poetry add aws-cdk-aws-autoscaling-hooktargetsInstalling aws-cdk.aws-autoscaling-hooktargets
Before you install
Low install friction with a stable dependency tree, but the package is end-of-support as of June 2023—AWS CDK v1 has reached End-of-Support and users should migrate to AWS CDK v2.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install aws-cdk.aws-autoscaling-hooktargets
from aws_cdk.aws_autoscaling_hooktargets import LifecycleHookTarget
from aws_cdk.aws_autoscaling import AutoScalingGroup
# Pass a hook target to autoScalingGroup.addLifecycleHook()
AWS CDK v1 is end-of-support as of 2023-06-01; new projects should use AWS CDK v2 instead.
Verify before relying
- Whether AWS CDK v2 provides equivalent lifecycle hook target functionality or if migration requires substantial refactoring.
- Compatibility and testing status with Python 3.10 and 3.11 in production environments.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 12 — aws-cdk.aws-autoscaling, aws-cdk.aws-iam, aws-cdk.aws-kms, aws-cdk.aws-lambda, aws-cdk.aws-sns-subscriptions, aws-cdk.aws-sns, aws-cdk.aws-sqs, aws-cdk.core, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 144,564/month — #11,148 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk.aws_autoscaling_hooktargets-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-autoscaling-commonProvides shared internal implementation details…
permissive · top 15,000 on PyPI
aws-cdk.aws-sns-subscriptionsProvides AWS CDK constructs for subscribing SNS…
permissive · top 15,000 on PyPI
aws-cdk.aws-autoscalingProvides CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-applicationautoscalingProvides CDK constructs for configuring…
permissive · top 15,000 on PyPI
aws-cdk.aws-snsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-eventsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-route53-targetsProvides Route53 alias record targets for AWS…
permissive · top 15,000 on PyPI
aws-cdk.aws-ecsProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.custom-resourcesProvides a framework for implementing AWS…
permissive · top 15,000 on PyPI
aws-cdk.aws-elasticloadbalancingProvides AWS CDK constructs for configuring and…
permissive · top 15,000 on PyPI