New pattern submission - lambda-recursion-sfn

Open
#3,381 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@NithinChandranR-AWS is already working on this.

Since Oct 26, 2026.

  • #3382 by @NithinChandranR-AWS — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
aws, typescript
Domain
backend, cloud

Research direction

Start with the lambda-recursion-sfn/typescript/cdk folder and read the existing AWS CDK pattern structure. The issue describes a workflow triggered by the RecursiveInvocationsDropped metric that sets reserved concurrency to 0; the submission says the pull request will follow. Check the pattern's deployment and test instructions, and consider it done when the pattern is documented and can be deployed and destroyed in a sandbox account.

Written by the indexing model from the issue text.

Description

Pattern: contain an AWS Lambda loop with an Amazon CloudWatch alarm and an AWS Step Functions workflow (AWS CDK, TypeScript), folder lambda-recursion-sfn/typescript/cdk.
When Lambda recursive loop detection stops a loop in which a function invokes itself asynchronously, the RecursiveInvocationsDropped metric starts a workflow, through an alarm and an Amazon EventBridge rule, that sets the function's reserved concurrency to 0. There is no Lambda function in the remediation path. Deployed, tested and destroyed in a sandbox account (us-west-2 and eu-central-1); the pull request follows.

Dominant language
Python
Stars
1.8k
Forks
1.1k
Avg merge
1d 5h
Merged PRs (30d)
135

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws-samples/serverless-patterns

All issues in aws-samples/serverless-patterns

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.