A simple Lambda function to send an email, e.g., for standalone contact forms on a static website.
- Set up an IAM with
AmazonSESFullAccess
andAWSLambdaBasicExecutionRole
- Get a domain/email verified in AWS SES (get out of sandbox too, contact support)
- Create lambda function with IAM role
- Open lambda to URL call, configure CORS etc., in accordance with your needs.
Call zip -r deploy.zip ./
whilst in root directory to zip all files. Thereafter, upload to aws lambda and deploy.