This is a CDK-ification of this project

Steps

Initial Deployment

  1. Buy a domain
  2. Verify your domain in SES
  3. clone the repo
  4. cp ./lambda/config.example.js ./lambda/config.js
  5. Fill in your info in the config file
  6. yarn
  7. npx cdk synth
  8. npx cdk deploy --require-approval never
  9. 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.
  10. Verify the email address(es) that you're forwarding to
  11. Send a test email to your recipient, and it should forward correctly

Updates

After pulling down a code update, re-run the deployment command:

  1. npx cdk deploy --require-approval never
  2. 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:
  3. 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.
  4. Open your active rule set, enable the new rule you just copied, then disable the old rule.