Function chaining with AWS Lambda durable functions in Terraform

AWS Lambda durable function → AWS Lambda → AWS Lambda → AWS Lambda

A durable orchestrator that chains three Lambda functions in sequence to demonstrate AWS Lambda durable functions

A durable orchestrator invokes three Lambda functions in sequence, passing each step's output as input to the next. The durable framework checkpoints after every `context.invoke()` call and if the orchestrator fails, it replays from the beginning but skips completed steps using stored results, ensuring no work is repeated.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-durable-function-chaining-terraform

Deploy

terraform initterraform apply


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy
terraform show

Created by:

Archana V

Archana V

Solutions Architect at AWS

Follow on LinkedIn