Tag

AWS

4 posts

Send email with AWS SES in a CloudFlare Worker

Send email with AWS SES in a CloudFlare Worker

To send an email via a CloudFlare Worker you will need to call a email provider. AWS Simple Email Service (SES) is a robust transactional email provider that I already use in a number of other projects, and simplifies my billing. However the JavaScript SDK provided by AWS is very large and is not compatible with the CloudFlare Worker runtime. So we will want to roll our own simple API call to the SES.

Daniel Mitchell2 min read

Calling dotnet core Lambda API direct from PHP

Calling dotnet core Lambda API direct from PHP

Usually a API Gateway is placed in front of a Lambda to allow HTTP requests to be forwarded to a Lambda function. However even when using the HTTP API this still costs $1 per million invocations. To save costs I have setup the PHP website to call the Lambda function direct. Here is how to call the Lambda function and pass the request parameters through in a similar way to how you would call any other JSON API service.

Daniel Mitchell1 min read