-
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
AutoPublishAlias is not triggered for environment variable changes #1305
Comments
If the lambda function is invoked, does it have the old or new value for the environment variable? |
It looks like we can add the Section of code to update: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi |
When invoking via api gateway, the "old" version without my changed env var gets invoked. @keetonian Did you paste the right url? Was expecting a link to a section of code but your link goes to documentation. |
@cakepietoast @keetonian This is similar to the #1267 where environment variables stored in Secrets Manager that are changed don't trigger a new version of the lambda. |
Closing this as it was resolved with #1310. |
@cakepietoast this still doesn't work if the environment variable change was due to an updated value of a referenced parameter
|
@heyjustcode adding |
Description:
Changing or adding/removing environment variables for a function does not cause a new version to be published when using
AutoPublishAlias
.Steps to reproduce the issue:
AWS::Serverless::Function
resource, withAutoPublishAlias
set, and including an environment variable:TestVal1
toTestVal2
.Observed result:
The lambda function is updated with the new environment variable, but no new version is published, and the defined alias still points to the last published version.
Expected result:
A new function version is published, and the defined alias is updated to point to it.
The text was updated successfully, but these errors were encountered: