Prerequisites
Before you start, you’ll need:- A Resend API key
- A verified domain
Guide
1
Create an AWS Lambda function
Go to aws.amazon.com and create a new Lambda function using the Node.js 20.x or later runtime.

2
Edit the handler function
Paste the following code into the browser editor:
index.mjs
3
Deploy and send email
Click on 
Deploy and then Test at the top of the screen.
Examples
AWS Lambda Example
See the full source code.