I am trying to design a solution within AWS that will take in an incoming email through SES and process an attachment in that email via a lambda function.
However it seems that I cannot find any info on processing incoming email attachments sent to an SES let alone accessing them in lambda.
The max incoming SES email size that can be sent to SNS is 150 KB. You would probably need to send them to an S3 bucket (max size 30 MB). You could then have your Lambda function triggered from S3 and proceed with processing.
Perfect, I played with SES this afternoon and have the email flat file being uploaded to s3. Next session I should be able to configure a Lambda function to get triggered when the s3 bucket says a new file has been added to it.
yeah! i found that out a bit after my comment haha. damn, i ran into an issue with uploading the zip file on lambda (unrelated to email stuff) when i started using aws lambda instead of someone’s framework :(. doesn’t detect the damn handler and yes, i have the file in the main directory of the zip file.