Custom resource with multiple AWS Lambda functions

AWS CloudFormation → AWS Lambda → Amazon SQS queue

This pattern demonstrates the use of multiple AWS Lambda functions to manage a custom resource with CDK.

AWS CloudFormation can wait for up to an hour for a custom resource to report its success or failure. However, AWS Lambda function execution is limited with just 15 minutes maximum.
This sample project demonstrates how to use multiple AWS Lambda functions to manage a custom resource, so that developers are not limited by the 15 minutes Lambda execution timeout.
This pattern deploys two Lambda Functions and an SQS queue. SQS queue is being used for illustrative purposes only - to demonstrate that a different process, other than the custom resource Lambda function, can be used to report the resource creation result.

< 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/cdk-custom-resource-multiple-lambdas

Deploy

cdk deploy --require-approval never


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete -f.

Created by:

Dmitry Gulin

Dmitry Gulin

Modernization Architect, AWS

Follow on LinkedIn