skillfed

aws-cdk.aws-sns-subscriptions

CDK Subscription Constructs for AWS SNS

aws-cdk-aws-sns-subscriptions v1.204.0 147.0K downloads/30d#11,085 on PyPI12,868
Permissive license Apache-2.0 Active released

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-subscriptions

uv

uv add aws-cdk-aws-sns-subscriptions

poetry

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 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

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

Tags

sns topic subscriptionsaws cdk sns constructssns lambda subscriptionsns sqs queue subscriptioncdk email sms notificationsaws sns endpoint integrationcdk notification routing
aws-infrastructureend-of-lifeevent-routing

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

aws-cdk.aws-sns

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-sns-message-validator

Validates AWS SNS HTTP endpoint messages by…

unclear · top 15,000 on PyPI

sns

SNS utils provides utilities related to AWS…

unclear · top 15,000 on PyPI

cfnresponse

Sends response objects to AWS CloudFormation…

permissive · top 15,000 on PyPI

aws-cdk.aws-sqs

Provides AWS CDK constructs for defining Amazon…

permissive · top 15,000 on PyPI

aws-cdk.aws-autoscaling-hooktargets

Provides integration classes for AWS…

permissive · top 15,000 on PyPI

aws-cdk.aws-codestarnotifications

Defines AWS CodeStarNotifications rules in…

permissive · top 15,000 on PyPI

aws-cdk.aws-codecommit

Provides AWS CDK constructs for creating and…

permissive · top 15,000 on PyPI

django-ses

A Django email backend that routes outgoing…

permissive · top 5,000 on PyPI

amazon-sns-extended-client

Extends boto3's SNS client to publish messages…

permissive · top 15,000 on PyPI