subscribe

Deploy a lambda function using versioning and aliases + API Gateway

In this video we create a lambda function (a random number generator) and use versions and aliases to manage the deployment of the lambda function.

⚡️ Summary

  • The $LATEST version points to the latest version of the code of the function. For example, when you edit the code or upload a zip file with your code, the $LATEST version will immediately point to that version of the code.
  • A numeric version of a function points to a snapshot of the function's code at the time when the version was released. This version of the code cannot be changed.
  • An alias points to one of the versions of the function
  • To manage the release and deployment of a lambda function, we can point an API Gateway endpoint to an alias and then when we release a new version of the function, adjust the alias to point to this new version.

⚡️ Links: