My First AWS Lambda Function in C#

AWS, Code, Internet

I’m architecting a product (for my employer Digital Pi) which is hosted within the Amazon Web Services (AWS) environment. We need to create a microservice that sends all mail for the system through a centralized Marketo instance. Marketo is a marketing automation platform, and in the parlance of Marketo what I will be doing is triggering a campaign to run against the leads I give it. Marketo has a REST API that can be used to accomplish this task.

This mail service will be called from a variety of places inside our AWS setup. Rather than set up a server and put nginx on it with a REST API built in NodeJS, and then forever have to deal with operational stuff related to that (security, backups, etc) I thought I’d bite the bullet and set up a Lambda function to send mail. I’ve decided to do it in .NET Core since I love .NET and am forced to program in NodeJS all the time.