AWS Lambda to Amazon SNS

AWS Lambda → SNS

Publish events to a SNS topic.

The Serverless template deploys a SNS topic and a Lambda function that has permission to publish events to the topic.

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

Deploy

serverless deploy --verbose


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

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

Additional resources

Created by:

Alex Nelson

Senior Solutions Architect, AWS