learn-aws-lambda icon indicating copy to clipboard operation
learn-aws-lambda copied to clipboard

Add "How to trigger lambda function when an email received through SES"

Open ZooeyMiller opened this issue 7 years ago • 8 comments

With regards to https://github.com/dwyl/apprenticeship/issues/13#issuecomment-314486997 we want to add a section to this repo explaining how to trigger a lambda function when an email is received with SES.

ZooeyMiller avatar Jul 12 '17 09:07 ZooeyMiller

Walkthough: https://aws.amazon.com/blogs/aws/new-receive-and-process-incoming-email-with-amazon-ses/

finnhodgkin avatar Jul 12 '17 09:07 finnhodgkin

In order to set up SES we need to have a domain to use. I've been meaning to get one for a personal website for a while so am sorting that out through namecheap right now.

ZooeyMiller avatar Jul 12 '17 09:07 ZooeyMiller

there has been a problem with namecheap double charging me and not giving me the domain so currently dealing with their support chat to try and get this sorted, as as far as I understand it is a prerequisite for setting up SES.

EDIT: all sorted now

ZooeyMiller avatar Jul 12 '17 09:07 ZooeyMiller

Having updated the DNS records on my domain we're now waiting for them to be verified by Amazon which it says can take up to 72hrs, so we pretty much have to wait on that.

ZooeyMiller avatar Jul 12 '17 10:07 ZooeyMiller

Dropping 'in-progress' and the time estimate until the domain is verified and we can continue to work on this.

finnhodgkin avatar Jul 12 '17 10:07 finnhodgkin

The domain is now verified so we should be able to work on this tomorrow :+1:

finnhodgkin avatar Jul 12 '17 16:07 finnhodgkin

We're back on this now that AWS have approved the domain.

ZooeyMiller avatar Jul 13 '17 08:07 ZooeyMiller

We have now set up a lambda function to be triggered when an email is received via SES, but it is hard to tell if the function is actually running as it currently doesn't do anything meaningful.

As detailed in https://github.com/dwyl/apprenticeship/issues/13#issuecomment-315020866 we are going to get started with #98 as these two issues link together, and if the lambda function being triggered by the email saves to S3 then we can easily verify that it is working.

Taking off time estimate for now, will go back on when we start writing the documentation, TE will go on #98 while we are working on it.

ZooeyMiller avatar Jul 13 '17 09:07 ZooeyMiller