-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: No new Lambda Versions are deployed with Lambda configurations changes #3622
Comments
Hi, thanks for opening this issue. Unfortunately I'm not able to produce the issue following these steps: 1. Initial state
This deploys successfully with a Lambda version 1. 2. Adding
|
Hello @lucashuy , thanks for the prompt response. Initial state
This deploys successfully with a Lambda version 1. Adding LoggingConfig and update description
I can see that the description and logging configuration for the original function are updated, but there isn't a new Lambda Version published. |
@mriccia Could you try using
I'm moving this to the SAM Repo as this question fit better under the scope of SAM than SAM CLI. |
@mriccia Thanks for reaching out. As Wing has pointed out, please try out |
Closing this issue as I believe the root cause is identified and |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Description:
When there is a SAM template with a Lambda function property
AutoPublishAlias
, I expect that changes to the Lambda function will publish a new Lambda Version.However, it seems that a new Version is not published in certain scenarios, if there are no code changes. For example: changes to the Logging configuration, and changes to the description.
Steps to reproduce:
sam build && sam deploy
a SAM project with a Lambda function with theAutoPublishAlias
setsam build && sam deploy
the project againObserved result:
The Lambda configuration has changed, however there's no new version published
Expected result:
A new Lambda Version is published and the Alias is updated
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.115.0eu-west-2
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: