In this video, we are going to learn how we can create and manage a lambda function URLs with using
a management console.
The function URL is dedicated HTTPS and 0.4 a lambda function so we can create and configure a function
URL through the lambda console or the Lambda API.
When we create a function URL, a lambda automatically generates a unique URL entry for us.
So we have two options when creating function URL.
The first option is we can create a new function with a function URL configuration, or we can create
a function URL configuration for an existing function.
So let me create without creating any function.
So for that purpose, I'm going to open the case management console.
Please open the management console.
And come to the function and we will follow to create a new function with a function URL configuration
for that purpose, create function button and I'm going to create new function.
Let me function.
Meet your OC, give the function name, scroll down.
Runtime will be Node.js and architecture live as it is per mission again live as it is and if you see
the advanced settings, please expand these advanced settings and see that scroll down.
We have options that we can enable.
The option is for the function URL is here enable function URL, we can use function URL to assign a
HTTPS endpoints to our lambda function for that purpose.
Please check this URL and when we are checking this URL there is some complications come.
Also we have authentication type.
So in authentication type configuration we can choose to authentication type for our function URL a
double is iam or non.
So if we select a non lambda won't perform any IM authentication or request or function.
So if you select the iam only authenticated IAM users can invoke our function URL to invoke our lambda
function.
So now I am going to leave as it is.
I don't change any authentication type and we have also one more configuration which is the configure
course cross origin resource sharing.
If we click this configuration, we basically set that only defined configurations origins can allow
to invoke our function URL.
I don't check this checkbox, also leave as it is and just click to create function.
That means we will follow the default configuration.
We only enable function URL for this lambda create operation.
So as you can see that our function is created with the function URL.
This creates a new function with the function for the latest version, and the function appears in the
function or section of the console.
You can see the function in here and we can right click and.
Invoke or function in here.
So is remember that we set the authentication tab i iam so that's why it is not allow us to invoke our
function well enough.
But you understand that we have created a lambda function well when creating a new function with using
the ADA management console.