How to deploy a lambda function using versioning and aliases + API Gateway
ฝัง
- เผยแพร่เมื่อ 22 ก.ค. 2024
- 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.
⚡️ Blog post: www.undefinedapps.com/post/de...
- 0:00 Intro: what are versions (numeric and $LATEST) and aliases and what are they useful for?
- 1:58 Iteration #1 - creating the lambda function, a new version, a new alias and an API Gateway endpoint url, which will trigger the function
- 5:45 Iteration #2 - create a new version and deploy the function by pointing the alias to the new version
- 6:59 Iteration #3 - A faster way to deploy the function and manage rollbacks, without using the aws console
- 11:18 Pointing an API gateway endpoint to trigger a lambda function's alias, instead of the $LATEST version
⚡️ 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.
⭐️ Subscribe for more content: newsletter.undefinedapps.com/
#AWS #Lambda #serverless - วิทยาศาสตร์และเทคโนโลยี
Just wow! Straight to the point and gives me everything I need! Thank you so much and keep up the great work!
Seriously, this is one of the best AWS tutorials I have ever seen! And that LambdaBuddy app is super cool. Keep making content!
Very helpful. You got straight to the point. Thanks a lot !
This was great! I came back to this video 3 times already. don't stop making videos I am sure you channel will grow more.
very nice & informative video about lambda aliases...thanks a lot!
jesus, amazing video, amazing explanation, keep up the good work bro
excellent explanation!!
Amazing, thanks!
AMAZING VIDEO!!!!!!!!
Thanks. It helped me.
Glad it helped!
hey, great work! currently looking to implement a blue/green solution for lambda function and theses to be a contender.
QQ - is lambda buddy secure enough for corporate functions to be integrated??
Thanks! Sure, if you have any specific concerns or questions regarding security best practices, feel free to email me.