Stage variable with lambda version & alias - Amazon API Gateway p19

preview_player
Показать описание
Welcome to part 19 of the tutorial series on Amazon API Gateway. In this tutorial, I have covered how we can use lambda versions and aliases and invoke them using a stage variable.

---
Support my work:
---
Paytm | Gpay: 9023197426

---
Series Tutorial
---
---
Another channel:
---

---
Connect with me
---
Рекомендации по теме
Комментарии
Автор

Awesome it just works, Thanks for this straight forward tutorial.

PrinceKhanProfile
Автор

Thanks! Even though I don't agree with having both stages on the same function, the fundamentals of the video are enough to work with API GW stage variables.

LuisRuizHalo
Автор

Great video!!! Could you please do a video on validating device(green grass edge device) certificate in API gateway/Cognito? Also a video on the practical way of applying a multi-tenant approach on a simple use case?

sandeepms
Автор

We have used the same approach in our project by making $LATEST = Dev & $v2.0 = prod , but how to automate this deployment every time we change, if we create a new prod version v.3.0 for say 10 different lambda's we want tp automate the deployment instead of manually doing all these steps in console .

phani
Автор

So where is the dynamism? It's embedded in special as defined in endpoint, which API Gateway has to invoke. Remember that invocation is kept generic where we have not supplied any specific lambda function name, instead kept a variable ${....}. Sp for API to work, that particular variable needs to be given a value. During test as shown you can stuff that in lambdaAlias parameters. During invocation of URLs as per each stage, you manually create a stage variable in the stage to set value for lambda function name (which API gateway will call).

I don't think this method is truely dynamic. It's semi dynamic.

fishsauce
Автор

Nice tutorial well explained, but I have one doubt in dev env we need to test our lambda function a lot of time by making small changes in our function, so how to invoke those function when we made changes, should I create a separate snapshot each time and link it in stage env variable?

ninja-gh
Автор

nice video. Is there a way inside the lambda for it to interrogate the value of a stage variable?

glennadams
welcome to shbcf.ru