-
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
Layer code update not reflected on Lambda Function #3540
Comments
So sorry you encountered a bug! Thanks for reporting the issue, we will be investigating it further. |
The issue is only if the lambda is provisioned with alias
|
@ssenchenko It's been 7 months. Any update? |
Facing same issue for a while now, any updates or workaround which can be used? |
We are facing the same issue with layers and we had a long call with AWS support yesterday to get our production environment to work again due to this bug. We ended up bumping the Memory setting on all the Lambda to be sure they used the latest version. We also use What we saw happening was as follows:
Then all our API requests coming in from API Gateway of course still are pointing to the We tried to add the layer version as an environment variable in all the lambdas to force an update, but then we hit the issue described here. It could also look like it is the same issue itself since we are sending the layer version ARN as a param to the template |
As per erashdan comments, the issue is only with lambda provisioned capacity used along with alias.
Workaround to force publish new version of lambda from atlesp comment fixed the issue.
|
This doesn't work for me? I always have to create new version manually and update the alias with the latest version |
I am also struggling with same issue... 😞 This only appears to work, when you introduce the new variable into the configuration, but would not create any more versions after that
|
I encounter the same issue. I have some lambdas with provisioned concurrency and some without. I tried to update the layer both types depend on. After publishing (using |
Adding my $0.02 here. I've just stumbled across this issue as well, exactly as described. My AWS folks suggested to write my own Alias and Version resources to override the ones SAM generates to effectively force it, but that appears to require also writing a custom Permission resource, and then overriding the RestApi resource by hand to invoke the Alias instead of the function. Still an issue in SAM CLI 1.107.0. |
For those who are still having the issue, does it only happen when |
Hey all, I tried to reproduce the issue and it seems it's due to It is not a SAM CLI issue. Transferring to SAM-T repo |
As mentioned by @hawflau, the solution is to set |
This issue is now closed. Comments on closed issues are hard for our team to see. |
This issue is still prevalent if you're not using |
Description:
Changes made to layer code are not reflected as a result of deploying a new version of the layer using sam deploy
Steps to reproduce:
Observed result:
Expected result:
Changes of the code in the new layer version should be reflected in the lambdas even if no new version of the lambdas was deployed
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.28.0Workaround
The text was updated successfully, but these errors were encountered: