aws-cdk.aws-sns-subscriptions
CDK Subscription Constructs for AWS SNS
What it is and what it does
This package is a CDK construct library for AWS SNS topic subscriptions. It provides Python classes that wrap SNS subscription logic, allowing you to attach SNS topics to multiple endpoint types—SQS queues, Lambda functions, email addresses, SMS numbers, and HTTPS URLs—using a simple `.add_subscription()` method call on a topic object.
The library handles common setup tasks like automatically granting KMS key permissions when subscribing encrypted queues, and supports CloudFormation parameters for dynamic endpoint values. However, the package is part of AWS CDK v1, which reached end-of-support on 2023-06-01; AWS recommends migrating to AWS CDK v2 for ongoing support and updates.
Use it for:
- Route SNS notifications to SQS queues for asynchronous processing and decoupling from Lambda.
- Trigger Lambda functions directly from SNS topic events without manual permission setup.
- Send email notifications to subscribers by adding email subscriptions to an SNS topic.
- Deliver SMS alerts to phone numbers via SNS topic subscriptions.
- Subscribe HTTPS endpoints to receive SNS messages as webhook POST requests.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AWS CDK constructs for subscribing SNS topics to endpoints including SQS queues, Lambda functions, email addresses, SMS numbers, and HTTPS URLs.
No—this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated. While the package itself has low install friction and permissive licensing, AWS explicitly recommends migrating to AWS CDK v2. Install only if you are maintaining legacy CDK v1 infrastructure; for new projects, use the v2 equivalent instead.
Install
aws-cdk-aws-sns-subscriptions on PyPI
pip
pip install aws-cdk-aws-sns-subscriptionsuv
uv add aws-cdk-aws-sns-subscriptionspoetry
poetry add aws-cdk-aws-sns-subscriptionsInstalling aws-cdk.aws-sns-subscriptions
Before you install
Low install friction with a wheel distribution. However, this is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated; users should migrate to AWS CDK v2 instead.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
from aws_cdk import aws_sns as sns
from aws_cdk.aws_sns_subscriptions import SqsSubscription, LambdaSubscription
topic = sns.Topic(self, "MyTopic")
topic.add_subscription(SqsSubscription(my_queue))
topic.add_subscription(LambdaSubscription(my_function))
Requires AWS CDK v1 environment; AWS CDK v1 is end-of-support as of 2023-06-01 and migration to v2 is recommended.
Verify before relying
- Whether cross-region SQS and Lambda subscriptions work reliably in all AWS regions.
- Current state of KMS key permission grants for encrypted queue subscriptions.
- Whether email and SMS subscriptions require additional AWS account configuration beyond token resolution.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 10 — aws-cdk.aws-iam, aws-cdk.aws-kms, aws-cdk.aws-lambda, 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 | 146,997/month — #11,085 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk.aws_sns_subscriptions-1.204.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
aws-cdk.aws-snsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-sns-message-validatorValidates AWS SNS HTTP endpoint messages by…
unclear · top 15,000 on PyPI
snsSNS utils provides utilities related to AWS…
unclear · top 15,000 on PyPI
cfnresponseSends response objects to AWS CloudFormation…
permissive · top 15,000 on PyPI
aws-cdk.aws-sqsProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-autoscaling-hooktargetsProvides integration classes for AWS…
permissive · top 15,000 on PyPI
aws-cdk.aws-codestarnotificationsDefines AWS CodeStarNotifications rules in…
permissive · top 15,000 on PyPI
aws-cdk.aws-codecommitProvides AWS CDK constructs for creating and…
permissive · top 15,000 on PyPI
django-sesA Django email backend that routes outgoing…
permissive · top 5,000 on PyPI
amazon-sns-extended-clientExtends boto3's SNS client to publish messages…
permissive · top 15,000 on PyPI