export BOUNCE_RECORDER_SNS_TOPIC=ses-notifications
export WEBHOOK_KEY=webhook_key
export WEBHOOK_URL=https://your-webhook-url
yarn
yarn run cdk bootstrap
# dry-run
yarn run cdk diff
# deploy
yarn run cdk deploy
Please set SNS topic subscribe in SES notification manually
- Bounce Notifications SNS Topic
- Complaint Notifications SNS Topic
yarn test
use test/lambda_bounce_event.json
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notification-contents.html#bounce-object
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-simulator.html
see example/webhook.js