This is a CDK-ification of this project
- Buy a domain
- Verify your domain in SES
- clone the repo
cp ./lambda/config.example.js ./lambda/config.js
- Fill in your info in the config file
yarn
npx cdk synth
npx cdk deploy --require-approval never
- Go into your SES Console and set your new RuleSet as Active. If you have an existing RuleSet, clone it as backup then copy your new rules into your existing rule set manually.
- Verify the email address(es) that you're forwarding to
- Send a test email to your recipient, and it should forward correctly
After pulling down a code update, re-run the deployment command:
npx cdk deploy --require-approval never
- If you have only modified the lambda, then you are done. If you have modified any CDK or related configuration that changes the SES rule set, then take the following manual steps:
- Go into your SES Console, locate your rule and copy it into your active rule set. You may have to change the name, to copy2, etc.
- Open your active rule set, enable the new rule you just copied, then disable the old rule.