dwyl / learn-aws-lambda

✨ Learn how to use AWS Lambda to easily create infinitely scalable web services
1.05k stars 202 forks source link

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

Open ZooeyMiller opened 7 years ago

ZooeyMiller commented 7 years ago

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.

finnhodgkin commented 7 years ago

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

ZooeyMiller commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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.

finnhodgkin commented 7 years ago

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

finnhodgkin commented 7 years ago

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

ZooeyMiller commented 7 years ago

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

ZooeyMiller commented 7 years ago

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.