CURATED TEMPLATE / AWS

A product action needs to send an email to the right person.

API to Lambda and email

View original source

When this becomes useful

Messages such as invitations, confirmations and alerts are part of the customer journey. A sample send path helps, but delivery state and retry behavior make it dependable.

What the template offers

API to Lambda and email is a AWS example pattern from AWS Serverless Patterns. It offers a concrete implementation to inspect and adapt. Illustrates an email send from an API flow. For production messages, add a durable queue and delivery failure handling.

Technical shape

Follow the API request into Lambda and SES. Check identity verification, IAM permissions and what the caller sees after a send failure.

Questions worth answering

  • How are failed deliveries and bounces handled?
  • Which messages must be durable?
  • What customer data belongs in a template?

Inspect the source

Read the maintainer's README, license, setup instructions and current repository state before adapting the code.

Open AWS Serverless Patterns

Capabilities to plan next

A deployable pattern is one piece of the product. These guides cover behavior and decisions around it.