1
00:00:00,330 --> 00:00:07,080
In this video, we are going to upload the zip file for lambda function with a case management console.

2
00:00:07,630 --> 00:00:13,590
A Lambda Functions code consist of scripts or compiled programs and their dependencies.

3
00:00:14,010 --> 00:00:18,900
We can use a deployment package to deploy our function code to the lambda function.

4
00:00:19,380 --> 00:00:25,230
Lambda supports two types of packets contain limits and zip file archives.

5
00:00:25,560 --> 00:00:29,580
In this video we will upload zip file and test the lambda function.

6
00:00:30,270 --> 00:00:33,540
So as you remember that in the last video we have created a new function.

7
00:00:33,540 --> 00:00:39,840
It is default boilerplate code and we will update this code with using the zip files.

8
00:00:39,930 --> 00:00:47,940
So in order to do that, please open the widgets to the code and create a new file which is a text file.

9
00:00:48,270 --> 00:00:58,620
And in here I'm going to copy from the R function code in here and paste the our newly created exe file.

10
00:00:59,540 --> 00:01:04,580
Basically I'm updating only the string of the return message.

11
00:01:04,880 --> 00:01:07,520
The return message is Hello from Lambda.

12
00:01:07,550 --> 00:01:10,790
I'm updating this updated function code.

13
00:01:12,140 --> 00:01:14,990
Now our updated code is ready.

14
00:01:15,020 --> 00:01:17,360
Please save this file.

15
00:01:17,510 --> 00:01:19,640
So I'm going to save from the.

16
00:01:22,250 --> 00:01:28,070
Folder of the updated code and the file name will be the index that is.

17
00:01:31,190 --> 00:01:31,730
Okay.

18
00:01:31,790 --> 00:01:32,480
Very good.

19
00:01:32,510 --> 00:01:41,180
We have updated our code with the index case file, but how we can deploy our code to our lambda function.

20
00:01:41,180 --> 00:01:45,230
So for that purpose, open our folder.

21
00:01:47,060 --> 00:01:49,430
And we are going to right click.

22
00:01:52,710 --> 00:01:55,620
Right click sent to.

23
00:01:57,230 --> 00:01:57,890
Zip file?

24
00:01:57,920 --> 00:01:58,610
Yes.

25
00:01:59,880 --> 00:02:08,700
We have created zip file from our index JS file and now I'm going to upload this zip file to our lambda

26
00:02:08,700 --> 00:02:09,390
function.

27
00:02:09,630 --> 00:02:15,660
Open the our function code and you can see in here in the code window there's the upload from button

28
00:02:15,660 --> 00:02:20,700
and if you click this button we have two option zip file or Amazon location.

29
00:02:20,700 --> 00:02:23,850
Now I'm going to use zip file, click the zip file.

30
00:02:23,880 --> 00:02:32,240
Now we can click the upload button and go to location of our created update code.

31
00:02:32,250 --> 00:02:35,670
You can see in here, select the index zip file.

32
00:02:37,040 --> 00:02:39,830
And now we are going to upload the index zip file.

33
00:02:39,830 --> 00:02:48,200
And if you click the save button, we will see that our updated code reflected in the our indexes see

34
00:02:48,200 --> 00:02:49,880
that the message is changed.

35
00:02:49,910 --> 00:02:56,960
Now I'm going to test this function, click the test function and create a test event.

36
00:02:58,020 --> 00:03:01,890
And click the save and click the test.

37
00:03:02,460 --> 00:03:03,150
Yes.

38
00:03:03,150 --> 00:03:11,040
Now we basically upload zip file and deploy the lambda function and this function returned our updated

39
00:03:11,040 --> 00:03:14,400
function called message, which is the upload function code.

40
00:03:14,520 --> 00:03:20,220
As you can see that we have successful upload zip file for lambda function with a management console.
