GithubHelp home page GithubHelp logo

seeebiii / ses-email-forwarding Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 8.0 905 KB

AWS CDK constructs to receive emails with SES and forward them to any other email address.

License: MIT License

JavaScript 6.11% TypeScript 93.89%
aws aws-cdk aws-cdk-constructs aws-ses email email-forwarding aws-lambda

ses-email-forwarding's People

Contributors

charles-salmon avatar dependabot[bot] avatar seeebiii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ses-email-forwarding's Issues

Template format error: Unrecognized resource types: [AWS::SES::ReceiptRuleSet, AWS::SES::ReceiptRule]

I'm getting this error when I do a cdk deploy. I'm kind of new to the ckd and typescript so possibly I'm just making some beginner error

VitaminsStack failed: Error [ValidationError]: Template format error: Unrecognized resource types: [AWS::SES::ReceiptRuleSet, AWS::SES::ReceiptRule]
at Request.extractError (/opt/homebrew/Cellar/aws-cdk/2.64.0/libexec/lib/node_modules/aws-cdk/lib/index.js:31:33843)
at Request.callListeners (/opt/homebrew/Cellar/aws-cdk/2.64.0/libexec/lib/node_modules/aws-cdk/lib/index.js:31:76646)
at Request.emit (/opt/homebrew/Cellar/aws-cdk/2.64.0/libexec/lib/node_modules/aws-cdk/lib/index.js:31:76094)
at Request.emit (/opt/homebrew/Cellar/aws-cdk/2.64.0/libexec/lib/node_modules/aws-cdk/lib/index.js:31:182419)
at Request.transition (/opt/homebrew/Cellar/aws-cdk/2.64.0/libexec/lib/node_modules/aws-cdk/lib/index.js:31:175971)
at AcceptorStateMachine.runT

Catch all e-mail forwarding

Great package @seeebiii Sebastian!

There's an issue with setting up a catch-all forwarder for an entire domain or subdomain.

image

Your emailMapping definition takes a "subdomain.domain.com" format, which is what's needed to create the forwarding rule in SES.

However, the aws-lambda-ses-forwarder package is expecting the input to be "@subdomain.domain.com", with the leading "@".

I was thinking that when you write the mapping to SSM, if the receiveEmail is not a valid e-mail, but rather a subdomain or domain, then you prepend "@" before saving in SSM so that aws-lambda-ses-forwarder can properly forward email from the entire (sub)domain.

let email = val.receiveEmail;

nodejs12.x is no longer supported

EmailForwardingRuleSet/EmailForwardingRule-0/EmailForwardingFunction: Resource handler returned message: "The runtime parameter of nodejs12.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs18.x) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: 124fd8f3-53b5-478e-a8e7-ed5075c5e7fe)" (RequestToken: eafdb84e-8fb3-0283-1223-881c1581b1f2, HandlerErrorCode: InvalidRequest)

==========

Can we get this bumped up?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.