Skip to content

hilotter/ses-bounce-recorder

Repository files navigation

SES Bounce Recorder

bounce_recorder

Custom settings

export BOUNCE_RECORDER_SNS_TOPIC=ses-notifications
export WEBHOOK_KEY=webhook_key
export WEBHOOK_URL=https://your-webhook-url

CDK deploy

yarn
yarn run cdk bootstrap

# dry-run
yarn run cdk diff

# deploy
yarn run cdk deploy

Add SNS topic to SES notification setting

Please set SNS topic subscribe in SES notification manually

  • Bounce Notifications SNS Topic
  • Complaint Notifications SNS Topic

notification

CDK Test

yarn test

Lambda Test

use test/lambda_bounce_event.json

https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notification-contents.html#bounce-object

Manual Email Test

https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-simulator.html

webhook example

see example/webhook.js

About

AWS SES Bounce Recorder using CDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published