-
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
feat: New opt-in property to update Lambda version whenever a property changes #2838
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tests/translator/input/function_with_alias_and_all_properties_property.yaml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test where AutoPublishAliasAllProperties
's value is an intrinsic. Sometimes customers will try to use intrinsics and in current logics, it looks like we will treat it as True
if no validation errors are raised.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue #, if available
#413
Description of changes
Add a new opt in property that will update a lambda version whenever a property in the transformed lambda function changes.
Description of how you validated changes
Used integrations tests. Pushed a template with
AutoPublishAliasAllProperties
set toTrue
, then changed the handler property and made sure a new lambda version was createdChecklist
Examples?
Please reach out in the comments if you want to add an example. Examples will be
added to
sam init
through aws/aws-sam-cli-app-templates.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.