Skip to content

Conversation

@reedham-aws
Copy link

Problem

Fixes #8372.

Currently, a deploy done using the lambda client will create a new published version of the function without any customer input. This is an issue because a) it is not the expected action for a deploy and b) version creation can take a long time and be expensive for Lambda Managed Instances customers.

The cases in which this happened were:

  1. Quick deploy through either the popup or the toolkit explorer
  2. Direct upload where the user clicks on the node and selects the upload action
  3. Remote invoke hot reloading, which will auto deploy code changes.

Open to reasons to keep this, but I think that versioning isn't necessary in those cases and can end up being confusing. The original PR that added this was in 2020 (#1269), and based on that PR it seems like the original implementer was testing things out.

Solution

Remove the Publish: true field from the UpdateFunctionCodeCommand. Now, all deploys are simply updating the code.


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@reedham-aws reedham-aws requested a review from a team as a code owner December 8, 2025 18:32
@amazon-inspector-ohio
Copy link

⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@amazon-inspector-ohio
Copy link

✅ I finished the code review, and didn't find any security or code quality issues.

@reedham-aws reedham-aws changed the title fix: remove version publish for every lambda deploy fix(lambda): remove version publish for every lambda deploy Dec 8, 2025
@reedham-aws reedham-aws closed this Dec 8, 2025
@reedham-aws reedham-aws reopened this Dec 8, 2025
@amazon-inspector-ohio
Copy link

⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

@amazon-inspector-ohio
Copy link

✅ I finished the code review, and didn't find any security or code quality issues.

Copy link
Member

@roger-zhangg roger-zhangg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has this been publishing version all these time? I didn't recall this behavior before.

@laileni-aws laileni-aws enabled auto-merge (squash) December 12, 2025 23:16
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.

Lambda Deploy automatically creates a new version and no option to disable that

5 participants