AWS AppSync to Amazon SNS

AWS AppSync → SNS

Create an AppSync API with an SNS HTTP data source

This CDK application deploys an AppSync API which uses an SNS HTTP datasource. AWS AppSync provides a 'publish' query that sends a message to the configured SNS topic. The query returns the response MessageId, and the SequenceNumber if using a FIFO (first-in-first-out) 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/cdk-appsync-sns

Deploy

npx aws-cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: npx aws-cdk destroy.

Created by:

Michael Liendo

Michael Liendo

Senior Developer Advocate | AWS AppSync 🦦

Follow on LinkedIn