1
00:00:00,330 --> 00:00:07,200
In this video, we are going to learn how we can create and manage a lambda function URLs with using

2
00:00:07,200 --> 00:00:08,640
a management console.

3
00:00:09,000 --> 00:00:16,380
The function URL is dedicated HTTPS and 0.4 a lambda function so we can create and configure a function

4
00:00:16,380 --> 00:00:19,890
URL through the lambda console or the Lambda API.

5
00:00:20,010 --> 00:00:25,710
When we create a function URL, a lambda automatically generates a unique URL entry for us.

6
00:00:26,040 --> 00:00:28,770
So we have two options when creating function URL.

7
00:00:28,800 --> 00:00:35,580
The first option is we can create a new function with a function URL configuration, or we can create

8
00:00:35,580 --> 00:00:38,940
a function URL configuration for an existing function.

9
00:00:39,060 --> 00:00:42,510
So let me create without creating any function.

10
00:00:42,660 --> 00:00:47,490
So for that purpose, I'm going to open the case management console.

11
00:00:47,520 --> 00:00:50,610
Please open the management console.

12
00:00:53,090 --> 00:00:58,820
And come to the function and we will follow to create a new function with a function URL configuration

13
00:00:59,000 --> 00:01:04,160
for that purpose, create function button and I'm going to create new function.

14
00:01:04,430 --> 00:01:06,710
Let me function.

15
00:01:09,930 --> 00:01:15,360
Meet your OC, give the function name, scroll down.

16
00:01:15,360 --> 00:01:23,160
Runtime will be Node.js and architecture live as it is per mission again live as it is and if you see

17
00:01:23,160 --> 00:01:29,040
the advanced settings, please expand these advanced settings and see that scroll down.

18
00:01:29,190 --> 00:01:31,830
We have options that we can enable.

19
00:01:32,100 --> 00:01:38,850
The option is for the function URL is here enable function URL, we can use function URL to assign a

20
00:01:38,850 --> 00:01:42,720
HTTPS endpoints to our lambda function for that purpose.

21
00:01:42,750 --> 00:01:49,980
Please check this URL and when we are checking this URL there is some complications come.

22
00:01:49,980 --> 00:01:52,320
Also we have authentication type.

23
00:01:52,320 --> 00:01:59,050
So in authentication type configuration we can choose to authentication type for our function URL a

24
00:01:59,070 --> 00:02:01,350
double is iam or non.

25
00:02:01,530 --> 00:02:07,230
So if we select a non lambda won't perform any IM authentication or request or function.

26
00:02:07,830 --> 00:02:16,920
So if you select the iam only authenticated IAM users can invoke our function URL to invoke our lambda

27
00:02:16,920 --> 00:02:17,520
function.

28
00:02:17,520 --> 00:02:19,920
So now I am going to leave as it is.

29
00:02:19,920 --> 00:02:25,650
I don't change any authentication type and we have also one more configuration which is the configure

30
00:02:25,680 --> 00:02:28,140
course cross origin resource sharing.

31
00:02:28,380 --> 00:02:36,530
If we click this configuration, we basically set that only defined configurations origins can allow

32
00:02:36,540 --> 00:02:38,530
to invoke our function URL.

33
00:02:38,610 --> 00:02:45,360
I don't check this checkbox, also leave as it is and just click to create function.

34
00:02:45,870 --> 00:02:48,390
That means we will follow the default configuration.

35
00:02:48,390 --> 00:02:52,890
We only enable function URL for this lambda create operation.

36
00:02:57,200 --> 00:03:01,880
So as you can see that our function is created with the function URL.

37
00:03:02,900 --> 00:03:09,560
This creates a new function with the function for the latest version, and the function appears in the

38
00:03:09,560 --> 00:03:11,750
function or section of the console.

39
00:03:11,780 --> 00:03:17,000
You can see the function in here and we can right click and.

40
00:03:17,780 --> 00:03:19,940
Invoke or function in here.

41
00:03:19,940 --> 00:03:26,630
So is remember that we set the authentication tab i iam so that's why it is not allow us to invoke our

42
00:03:26,630 --> 00:03:27,710
function well enough.

43
00:03:27,800 --> 00:03:35,390
But you understand that we have created a lambda function well when creating a new function with using

44
00:03:35,390 --> 00:03:37,070
the ADA management console.
