Hi, everyone.
Now, in today's video, we are going to look into the basics of Lambda Alias from a practical point
of view, and we'll also look into the overall routing configuration.
So for today's video, I have a Lambda function available.
Now.
Again, one of the prerequisites you can consider is there should be at least two versions of your code
within your I have two version called Explode code and QR code.
So if you look into the prod code here, all it does is it states.
Hello from production.
Let's go back.
If you look into the QR code, all it does, it shows Halo from Kiwi.
All right, now let's go back to our lambda function and within the alias, you can go ahead and quickly
create an alias.
Let's do that.
Within the alias name, I'll just call it as demo alias.
And this alias is associated with the broad code.
Now, apart from that, you also have an option of weighted alias.
If you'll click here, this allows you to select one more version of the code.
Let me select QR code and then you can specify the weight.
So at this stage, the version one has 100% of the weight.
So let's go ahead and divide.
Eight 5050 Alright, so version one will receive 50% traffic, version two will receive 50% of traffic.
I'll click on Save.
Once this is, then you can go ahead and quickly also create a function URL so that we can test it out
from our browser.
Let's quickly do that.
Great.
So our function, Earl, is available.
Let's open this up.
The first request went to Q Let's do a refresh.
This time it went to production.
Let's refresh again, Cuba, again production.
All right.
So I hope with this you understood the basics of Alias as well as the overall routing configuration.
And with this will conclude today's video.