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 alias events #11788
Lambda alias events #11788
Conversation
…ncurrency or snapStart are enabled.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #11788 +/- ##
==========================================
+ Coverage 86.56% 86.60% +0.04%
==========================================
Files 314 314
Lines 13127 13161 +34
==========================================
+ Hits 11363 11398 +35
+ Misses 1764 1763 -1
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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.
@rnielsen great, thanks for addressing that. It looks impressive!
Still, please see my comment. I believe a lot of changes hare are not needed (and if they're needed, they're out of scope, and should be covered with different PR)
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.
@rnielsen again, that looks really good. I'm impressed.
I've proposed just one stylistic change, and can you also confirm on your side that integration tests are passing. See the instructions: https://github.com/serverless/serverless/tree/main/test#aws-integration-tests
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.
@rnielsen Thank you! I've proposed just one last stylistic update and we should be good to go
lib/plugins/aws/package/compile/events/alb/lib/target-groups.js
Outdated
Show resolved
Hide resolved
test/unit/lib/plugins/aws/package/compile/events/websockets/lib/integrations.test.js
Outdated
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.
Thank you @rnielsen !
Most events were not using the lambda alias when calling the lambda when using the provisionedConcurrency or snapStart options, meaning these features weren't being used. I've created a new unit test alias.test.js which checks the following for all resources which have a reference to a provisionedConcurrency or snapStart lambda:
Closes: #11662
Closes: #11246
Closes: #11484
Closes: #10764
Closes: #10167