--- id: aws-cdk-aws-sns-subscriptions version: "1.204.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # aws-cdk.aws-sns-subscriptions — CDK Subscription Constructs for AWS SNS License: permissive · Maintenance: active · Downloads: 147.0K/mo ## 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 above — 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 pip install aws-cdk-aws-sns-subscriptions uv add aws-cdk-aws-sns-subscriptions poetry add aws-cdk-aws-sns-subscriptions ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 147.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags sns topic subscriptions, aws cdk sns constructs, sns lambda subscription, sns sqs queue subscription, cdk email sms notifications, aws sns endpoint integration, cdk notification routing, aws-infrastructure, end-of-life, event-routing [View on SkillFed](https://skillfed.io/packages/aws-cdk-aws-sns-subscriptions) · [View on PyPI](https://pypi.org/project/aws-cdk-aws-sns-subscriptions/)