AWS Lambda to Amazon SNS

AWS Lambda → SNS

Create a Lambda function that publishes to an SNS topic

This pattern deploys an SNS topic and a Lambda function that will send a custom message to the topic once triggered. The CDK application contains the minimum IAM resources required to run the application.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-sns-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Jake Boggan

Jake Boggan

I'm an ML & Data Engineer with AWS Professional Services.