1
00:00:00,480 --> 00:00:07,320
In this video, we are going to create our first edible lambda function with a WS management console.

2
00:00:08,310 --> 00:00:12,150
We are going to come to create a function page of the Lambda.

3
00:00:12,180 --> 00:00:14,880
You can go to functions and click the create function button.

4
00:00:15,000 --> 00:00:18,660
And now we have four options to create lambda function.

5
00:00:18,900 --> 00:00:26,460
We can create from scratch, or we can use a blueprint that predefined functions which we can create

6
00:00:26,460 --> 00:00:28,830
and develop over the European functions.

7
00:00:29,010 --> 00:00:31,210
Let's create a blueprint function.

8
00:00:31,230 --> 00:00:35,790
Click this place and search for the Helloworld.

9
00:00:39,560 --> 00:00:44,150
And this is the Hollywood blueprint, and you can set it.

10
00:00:45,110 --> 00:00:49,100
This blueprint and it is also required the function name.

11
00:00:49,190 --> 00:00:57,740
I'm going to give the function name as a test function and runtime will be Node.js and you can see the

12
00:00:57,740 --> 00:00:59,150
execution rolls in here.

13
00:00:59,240 --> 00:01:05,030
We are going to create a new role with basic lambda permission when we select this colored watch permission

14
00:01:05,030 --> 00:01:11,540
policy is included in this role, and Lambda creates a Node.js function and execution rule that grants

15
00:01:11,540 --> 00:01:16,910
the function permission to upload the look and see from the Amazon cloud, which looks the lambda function

16
00:01:16,910 --> 00:01:18,680
assumes the execution role.

17
00:01:18,680 --> 00:01:25,160
When you invoke our function and use this execution role to create credentials for the SDK and read

18
00:01:25,160 --> 00:01:26,990
data from from the event sources.

19
00:01:27,410 --> 00:01:34,730
And if you scroll down and set the execution role as any role and we can see the lambda function code

20
00:01:34,730 --> 00:01:40,040
in here, here you can see the example Helloworld function that prints three.

21
00:01:40,040 --> 00:01:46,910
In one case we have event key one, key two and key three is basically logging this information as a

22
00:01:46,910 --> 00:01:51,440
value 1 to 3 and turn back to the key one of the event.

23
00:01:51,650 --> 00:01:57,260
So this is the basic blueprint function of the helloworld.

24
00:01:57,260 --> 00:02:01,010
We set the function name, create any role, and this is the lambda function.

25
00:02:01,010 --> 00:02:06,710
If you scroll down, you can see the create function button, click this create function button.

26
00:02:06,800 --> 00:02:09,680
The function will be created.

27
00:02:10,190 --> 00:02:11,570
Let's wait for a while.

28
00:02:11,600 --> 00:02:15,620
This takes some time due to create also an execution role.

29
00:02:15,620 --> 00:02:18,200
Yes, the function is created successfully.

30
00:02:18,200 --> 00:02:21,560
If you scroll down, we can read our function code.

31
00:02:21,560 --> 00:02:28,850
We can see this is the function code and you can see other configuration in this setup.

32
00:02:28,850 --> 00:02:34,910
We will see in the next video we can see the code into the code editor and we can change, edit and

33
00:02:34,910 --> 00:02:37,070
update the code in this place.

34
00:02:37,250 --> 00:02:42,350
As you can see that we have successfully created our lambda function in the next video we are going

35
00:02:42,350 --> 00:02:44,300
to invoke and test our function.
