jeremydaly / lambda-warmer

A module to optimize AWS Lambda function cold starts
MIT License
525 stars 55 forks source link

Support for aliases is missing #66

Closed Jimmy89 closed 4 weeks ago

Jimmy89 commented 9 months ago

The current version (2.0.1) does not support alias names for lambda invocations. I support the "$LATEST" tag and version numbers, but not any other alias e.g. stable. Therefore, if a lambda is called with the stable tag the code thinks a different lambda version must be called as isDifferentTarget is set to true (because the lambda version number is used for comparison instead of the tag). Therefore, it tries to call the lambda again instead of triggering a delay.