Amazon API Gateway REST API to AWS Lambda to Amazon SNS with enhanced monitoring

API Gateway REST API → AWS Lambda → Amazon SNS

Integration of Amazon API Gateway REST API with AWS Lambda to publish to Amazon SNS with enhanced monitoring

This sample project demonstrates how to publish to a SNS Topic whenever the REST API is invoked using Lambda function.
This pattern deploys a Amazon API Gateway REST API with Lambda Function integration and SNS Topic with enhanced monitoring features including CloudWatch Alarms, X-Ray tracing, and Synthetics Canary.

< 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/apigw-lambda-sns-monitoring

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.
Manually delete the S3 bucket created for Synthetics artifacts after deleting the CloudFormation stack.

Created by:

Sanskar

Sanskar

Sanskar is a Serverless Cloud Engineer at Amazon Web Services and is based in India. Sanskar has avid interest in microservices and serverless patterns.

Follow on LinkedIn