[Lambda] Add "Force Cold Start" action to Lambda console
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
Start by reviewing the AWS Lambda console interface and AWS Lambda API, focusing on the top-right function-action menu alongside “Publish new version” and “Create Alias.” Done means defining and implementing a supported “Force Cold Start” action that causes the next invocation to use a fresh execution environment, with its behavior and limitations documented.
Written by the indexing model from the issue text.
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Tell us about your request
Add a "Force Cold Start" action to the AWS Lambda console that would mark a function as "modified" to trigger a cold start on the next invocation. This action would be accessible through the top-right menu in the Lambda function console, similar to other function actions like "Publish new version" or "Create Alias".
Which service(s) is this request for?
AWS Lambda console interface / AWS Lambda API
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
During development and testing, Lambda functions often cache data in global variables or maintain connections that persist across warm invocations. Sometimes it's necessary to clear this cache or reset the function's state to test cold start behavior or troubleshoot issues related to cached data.
Currently, there's no direct way to force a Lambda function to perform a cold start without:
- Updating the function code
- Modifying environment variables
- Changing function configuration
- Waiting for the execution environment to naturally expire
This makes it difficult to:
- Test cold start performance and behavior
- Clear cached data that might be causing issues
- Validate that the function works correctly from a fresh state
- Debug problems that only occur during cold starts
The impact of not having this feature is increased development time and complexity when testing Lambda functions, especially those that rely heavily on caching or maintain state between invocations.
Are you currently working around this issue?
Yes, currently working around this by:
- Adding/removing dummy environment variables to trigger a function update
- Making minor code changes and redeploying
- Updating function description or other metadata
- Waiting for execution environments to naturally expire (unreliable timing)
These workarounds are cumbersome, time-consuming, and not ideal for rapid development/testing cycles.
Additional context
This feature would be particularly valuable for:
- Developers testing Lambda performance optimization
- Teams debugging caching-related issues
- DevOps engineers validating cold start behavior
- Anyone developing Lambda functions that maintain state between invocations
The implementation could be as simple as internally marking the function as "modified" when this action is triggered, which would cause AWS Lambda to create a new execution environment for the next invocation.
Note on pricing justification: Previously, cold start compute time was free, so AWS had logical reasons to prevent users from artificially triggering cold starts (to avoid potential abuse of free compute resources). However, since AWS now charges for all cold start duration, there's no longer a pricing incentive to restrict this capability. Users would be paying for any cold start they trigger, making an API call or console action to force cold starts reasonable for legitimate testing and performance evaluation purposes.
Attachments
Suggested button:
- Dominant language
- No language data
- Stars
- 196
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws/aws-lambda-roadmap
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
aws/aws-lambda-roadmap#101 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
aws/aws-lambda-roadmap#100 ·
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
aws/aws-lambda-roadmap#97 · 1 comment · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
aws/aws-lambda-roadmap#96 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
aws/aws-lambda-roadmap#95 · 1 comment · 1 reaction ·
All issues in aws/aws-lambda-roadmap
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100