-
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
Lambda Versioning Issues #823
Comments
I think we could expose an optional This parameter would be added here to Serverless::Function: Pass parameter to version: Update relevant E2E and unit tests. |
Edit: I Think have figured out this now. I needed to set the @keetonian I am currently trying to work on this issue. But I am having a bit of a hard time figuring out how does the |
Hi, @keetonian My PR 835 is ready for Review. Please take a look and provide any necessary feedbacks. |
Released with SAM v1.11.0! |
I've noticed that if only the
Am I doing something wrong? |
To fix this, we would need to take the This would force redeployments for everyone using this property, I am not sure if we want to do that at this time. A workaround for now would be to make a change to your CodeUri property, which will force a redeployment of this version resource. If you are using the SAM or AWS CLI to package your lambda function, all this takes is any simple change to your code and this property will change. |
@keetonian As far as I've tested, just changing the FunctionName of an AWS::Serverless::Function property does force an update of any lambda. That's how I currently get around my issue #1267. Is there a reason that this FunctionName updating mechanism would not be preferred over using the AWS::Lambda::Version? |
Hello Team,
This is regarding the issue which I faced during lambda versioning.
We used AutoPublishAlias in SAM template for versioning/aliasing of lambdas which has a restriction that we cannot provide custom description to versions. Intent is to pass commit id as a description as a correlation id between lambda version and commits which generated the versions.
Resource AWS::Lambda::Version is also not proving to be any help, as on the second execution I cloudformation is failing with the message that "Update to resource type AWS::Lambda::Version is not supported.". Going through several blogs I came to know that for any new version to be published we need to define an addition AWS::Lambda::Version resource. I assume we cannot perform update to Lambda Version as it is immutable resource and we have to create new version each time.
AutoPublishAlias to accept a description will help to put a relational mapping between the lambda version and the stack which created the stack. Or if you can map commit id and display it in lambda console as Tags that will also suffice the purpose.
Many Thanks.
The text was updated successfully, but these errors were encountered: