Skip to content

fix: update existing Lambda handler configuration - #2195

Open
Shubham-Padkonde wants to merge 1 commit into
aws:masterfrom
Shubham-Padkonde:fix/update-lambda-handler
Open

Shubham-Padkonde wants to merge 1 commit into
aws:masterfrom
Shubham-Padkonde:fix/update-lambda-handler

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Issue #, if available: Addresses the stale Lambda handler configuration reported in #1566 (the final paragraph).

Description of changes:

When a function retains its deployed name but its handler moves from app.worker to chalicelib.workers.worker, deployment uploads the new code but does not update Lambda's Handler. Invocations therefore continue looking for the old callable. Include the desired handler in the update plan and forward it to UpdateFunctionConfiguration. The optional client parameter preserves existing callers that omit a handler.

Regression coverage checks moves into and out of a blueprint module, a callable rename with the same deployed function name, and the actual botocore request parameters. All four cases fail before this fix. Optional scalar configuration fields are collected together to stay within the project's complexity limit.

This addresses the handler-update problem only; blueprint middleware/app initialization discussed in the same issue remains separate.

Validation: full make prcheck passes on Python 3.11.15: 1,401 tests passed, 27 skipped, 94% coverage; flake8, pydocstyle, pylint, documentation link/HTML checks, and mypy (63 source files) pass. The focused planner/AWS-client suite passes 306 tests. No live AWS resources were created or modified; service calls use botocore stubs.

Developed with Codex assistance; no independent human review is claimed.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Shubham-Padkonde
Shubham-Padkonde requested a review from a team as a code owner September 21, 2026 13:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant