AWS Lambda to AWS Lambda

Lambda function → Lambda function → Lambda function

Create Lambda function that asychronously sends invocation results to another Lambda function.

This template deploys Lambda function that aynchronously sends its invocation results to another Lambda function. In this example, Lambda event destinations is used to send the invocation results on failure.
The event destination section of the AWS::Serverless::Function also sets up the required permissions for downstream Lambda invocatipon to invoke a specific function.

< 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-lambda

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Benjamin Smith

Benjamin Smith

Ben is a senior developer advocate for Serverless Applications at Amazon Web Services based in London, UK. Prior to joining AWS Ben worked in a number of different technical roles specializing in workflow Automation and web development.

Follow on LinkedIn