1
00:00:00,180 --> 00:00:07,560
In this video, we are going to learn how to use a lambda with using a cell commons.

2
00:00:07,950 --> 00:00:10,900
Basically, we have two options to use a.

3
00:00:12,210 --> 00:00:17,730
The first option is the a cloud shell, which is on a mission console.

4
00:00:17,820 --> 00:00:21,990
And the second option is the Windows PowerShell commands.

5
00:00:22,830 --> 00:00:24,960
So let's see one by one.

6
00:00:25,410 --> 00:00:33,000
A cloud shell is established on a console and includes all required packets by default.

7
00:00:33,240 --> 00:00:42,510
And Windows PowerShell is using PowerShell or any local command from your operating system that we can

8
00:00:42,510 --> 00:00:44,080
also follow the second way.

9
00:00:44,100 --> 00:00:53,190
But now I'm going to show you how we can use both way with a placeholder commands and see a lambda interactions.

10
00:00:53,430 --> 00:00:58,380
Okay, so let me show how these options can be done one by one.

11
00:00:58,500 --> 00:01:02,640
So first option is a place called Shell.

12
00:01:02,940 --> 00:01:11,520
In order to see a cloud shell to run click commands, please open the management console and search

13
00:01:11,520 --> 00:01:13,140
for the cloud shell.

14
00:01:15,340 --> 00:01:21,610
Yes, this is the browser based shalvey running select commands accessed from the management console.

15
00:01:21,790 --> 00:01:27,490
If you run this cloud shell the first time, when you open this class, it is preparing your terminal

16
00:01:27,670 --> 00:01:32,020
and it can take some time when you open the first time.

17
00:01:32,140 --> 00:01:40,540
But after that, directly, we can run the commands in here because this is preparing from the measurement

18
00:01:40,630 --> 00:01:46,720
console and it is required it including required package that we can run a command.

19
00:01:46,840 --> 00:01:49,270
For example, let's take a previous version.

20
00:01:50,710 --> 00:01:58,330
So as you can see that it is using the ADA Lovelace Clay version 2.7 and we can directly run the Ada

21
00:01:58,330 --> 00:02:03,070
Lovelace Version Command, and also we can run Ada Lovelace Lambda Command.

22
00:02:03,100 --> 00:02:06,070
This is the same commands for Ada Lambda Function.

23
00:02:06,220 --> 00:02:09,040
And I'm going to list functions.

24
00:02:11,370 --> 00:02:18,000
So this is the command that we are going to run a lambda list function and hit enter.

25
00:02:18,030 --> 00:02:24,580
After that you see that there is no active function on our environment now, so that's why it's not

26
00:02:24,580 --> 00:02:25,940
returning any functions.

27
00:02:25,950 --> 00:02:28,010
But you understand the idea.

28
00:02:28,020 --> 00:02:32,400
We basically run the SQL commands using the cloud shell.

29
00:02:33,330 --> 00:02:37,050
So now I'm going to shifting to the second option.

30
00:02:37,140 --> 00:02:39,930
Our second option is command window.

31
00:02:39,960 --> 00:02:41,760
That means Windows PowerShell.

32
00:02:42,480 --> 00:02:49,440
Since we are configured a place in our local computer, we can run select commands from our local computer

33
00:02:49,440 --> 00:02:52,770
with using the Windows PowerShell or any command window.

34
00:02:52,950 --> 00:03:00,690
So in order to do that, please open the OR visit to the code main directory.

35
00:03:00,720 --> 00:03:06,120
You can see that in the last video we have, create the root folder and we have created a section seven

36
00:03:06,120 --> 00:03:06,780
folder.

37
00:03:06,810 --> 00:03:14,100
Since we are in this Section seven folder now I'm going to create subfolder, which is the lecture with

38
00:03:14,100 --> 00:03:14,910
the number.

39
00:03:14,910 --> 00:03:21,090
So select this one and create self folder, which is the lecture 4 to 3.

40
00:03:21,840 --> 00:03:22,560
Okay.

41
00:03:22,590 --> 00:03:27,870
Under the lecture 43, I'm going to create a new file which is the commands.

42
00:03:30,300 --> 00:03:31,170
Text while.

43
00:03:31,560 --> 00:03:40,590
So I would like to add all required click commands with this way create commands folder and we will

44
00:03:40,590 --> 00:03:43,830
using a double Islam with the CLI.

45
00:03:43,980 --> 00:03:49,590
And I'm going to run commands in here and I would like to paste commands in here.

46
00:03:49,590 --> 00:03:53,940
Yes, we will run these three commands from our local computer.

47
00:03:54,150 --> 00:04:01,200
So now how we can interact with the select commands from our local computer, I'm going to open the

48
00:04:01,200 --> 00:04:07,320
terminal on which is the code you can see in here there is a terminal and if you click this terminal

49
00:04:07,320 --> 00:04:12,660
section, you can click the new terminal or you can use this shortcut.

50
00:04:12,690 --> 00:04:17,940
I'm going to create a new terminal and you can see that this is starting PowerShell by default.

51
00:04:17,940 --> 00:04:24,900
So now I'm starting to using these click commands on the terminal of the Visual Studio code.

52
00:04:24,930 --> 00:04:28,890
First of all, I would like to take a list the stage version.

53
00:04:29,520 --> 00:04:34,470
We can see that we are using the same CLI version in our local computer.

54
00:04:34,560 --> 00:04:43,020
And let's try to use Lambda Select Commands, which is the A Lambda List functions.

55
00:04:43,140 --> 00:04:48,030
And if you hit the enter, it is returning us the same response.

56
00:04:48,030 --> 00:04:52,680
There is no functions, so let's create a function and try again.

57
00:04:52,680 --> 00:04:53,640
This command.

58
00:04:53,880 --> 00:04:58,980
If there is no function, let's create a basic lambda function with default configuration.

59
00:04:58,980 --> 00:05:02,310
For that purpose, open the list management console.

60
00:05:03,770 --> 00:05:06,380
Open the lambda animation console.

61
00:05:06,410 --> 00:05:07,400
Go to functions.

62
00:05:07,400 --> 00:05:10,070
Create, function and create.

63
00:05:10,990 --> 00:05:11,770
Default function.

64
00:05:11,770 --> 00:05:13,390
Which name is my function?

65
00:05:13,750 --> 00:05:16,390
I'm not going to change anything and create function.

66
00:05:17,080 --> 00:05:20,950
The idea is that C functions with select commands.

67
00:05:21,730 --> 00:05:22,740
For that purpose.

68
00:05:22,750 --> 00:05:25,810
I'm creating basic lambda function.

69
00:05:27,190 --> 00:05:31,950
After that we will listing the functions with our local computer.

70
00:05:31,970 --> 00:05:32,230
Yes.

71
00:05:32,230 --> 00:05:34,840
Successfully created the function.

72
00:05:34,840 --> 00:05:36,430
So if you come back to our.

73
00:05:37,400 --> 00:05:41,790
We just looked and run the same command list functions.

74
00:05:41,810 --> 00:05:44,600
Now we can see the function that is in here.

75
00:05:45,020 --> 00:05:52,190
You can see that there is a JSON response which including the function configurations, this is the

76
00:05:52,190 --> 00:05:55,280
function name, runtime role and so on.

77
00:05:55,310 --> 00:05:57,830
This is returning to us the function.

78
00:05:57,830 --> 00:06:01,780
So we can also use some specific sailor commands.

79
00:06:01,790 --> 00:06:07,610
You can see in here a the blue Islam, the gate function and providing the function name as a parameter.

80
00:06:07,610 --> 00:06:13,100
So I'm copying this function select command and come here, paste in here.

81
00:06:13,130 --> 00:06:20,480
So if you hit the enter this time we are getting the specific function with providing the function name

82
00:06:20,480 --> 00:06:22,280
as a parameter of command.

83
00:06:22,310 --> 00:06:26,750
We can see the response is the same as the before we run the command.

84
00:06:26,780 --> 00:06:29,870
Basically it is returning all details of this function.

85
00:06:30,260 --> 00:06:31,280
Okay, very good.

86
00:06:31,310 --> 00:06:40,190
So where we can find all these commands for a lambda that is in documentation, you can see in here,

87
00:06:40,190 --> 00:06:43,470
I'm also sharing this link on the video resources.

88
00:06:43,490 --> 00:06:47,240
You can see the cell command reference documentation.

89
00:06:47,240 --> 00:06:51,910
And for Lambda, if you come to Lambda Page, you can see all available commands.

90
00:06:51,920 --> 00:06:58,010
There is lots of commands and we will use also these create function, command, delete, function,

91
00:06:58,160 --> 00:07:02,240
get, function, get alias and list functions.

92
00:07:02,240 --> 00:07:09,440
You can see that these are the commands for the Lambda Islamic operations.

93
00:07:09,980 --> 00:07:16,310
So basically the Lambda API reference provides information about each the API methods, including details

94
00:07:16,310 --> 00:07:19,550
about the parameters in each API request and the response.

95
00:07:19,910 --> 00:07:22,340
So we can see the all available commands.

96
00:07:22,340 --> 00:07:26,630
And for example, we using the list functions.

97
00:07:27,380 --> 00:07:32,240
And when we're using the list function select commands, you can see the options in here.

98
00:07:32,270 --> 00:07:35,600
There is lots of options can be applied.

99
00:07:35,630 --> 00:07:38,780
These see commas and see the place in here.

100
00:07:38,840 --> 00:07:44,510
Here you can see the example and the example output for the list function command.

101
00:07:45,320 --> 00:07:48,380
As you can see that we have two options.

102
00:07:48,410 --> 00:07:55,190
The first one is the cloud shell, and the second one local computer terminal or the command window.

103
00:07:55,430 --> 00:08:02,720
And we will use select commands with our computer because we have configured it and we will follow the

104
00:08:02,720 --> 00:08:09,920
second option, which is we just do the code command window and we already use the commands from our

105
00:08:09,920 --> 00:08:11,450
visual application.
