In this video, we are going to learn how to use a lambda with using a cell commons.
Basically, we have two options to use a.
The first option is the a cloud shell, which is on a mission console.
And the second option is the Windows PowerShell commands.
So let's see one by one.
A cloud shell is established on a console and includes all required packets by default.
And Windows PowerShell is using PowerShell or any local command from your operating system that we can
also follow the second way.
But now I'm going to show you how we can use both way with a placeholder commands and see a lambda interactions.
Okay, so let me show how these options can be done one by one.
So first option is a place called Shell.
In order to see a cloud shell to run click commands, please open the management console and search
for the cloud shell.
Yes, this is the browser based shalvey running select commands accessed from the management console.
If you run this cloud shell the first time, when you open this class, it is preparing your terminal
and it can take some time when you open the first time.
But after that, directly, we can run the commands in here because this is preparing from the measurement
console and it is required it including required package that we can run a command.
For example, let's take a previous version.
So as you can see that it is using the ADA Lovelace Clay version 2.7 and we can directly run the Ada
Lovelace Version Command, and also we can run Ada Lovelace Lambda Command.
This is the same commands for Ada Lambda Function.
And I'm going to list functions.
So this is the command that we are going to run a lambda list function and hit enter.
After that you see that there is no active function on our environment now, so that's why it's not
returning any functions.
But you understand the idea.
We basically run the SQL commands using the cloud shell.
So now I'm going to shifting to the second option.
Our second option is command window.
That means Windows PowerShell.
Since we are configured a place in our local computer, we can run select commands from our local computer
with using the Windows PowerShell or any command window.
So in order to do that, please open the OR visit to the code main directory.
You can see that in the last video we have, create the root folder and we have created a section seven
folder.
Since we are in this Section seven folder now I'm going to create subfolder, which is the lecture with
the number.
So select this one and create self folder, which is the lecture 4 to 3.
Okay.
Under the lecture 43, I'm going to create a new file which is the commands.
Text while.
So I would like to add all required click commands with this way create commands folder and we will
using a double Islam with the CLI.
And I'm going to run commands in here and I would like to paste commands in here.
Yes, we will run these three commands from our local computer.
So now how we can interact with the select commands from our local computer, I'm going to open the
terminal on which is the code you can see in here there is a terminal and if you click this terminal
section, you can click the new terminal or you can use this shortcut.
I'm going to create a new terminal and you can see that this is starting PowerShell by default.
So now I'm starting to using these click commands on the terminal of the Visual Studio code.
First of all, I would like to take a list the stage version.
We can see that we are using the same CLI version in our local computer.
And let's try to use Lambda Select Commands, which is the A Lambda List functions.
And if you hit the enter, it is returning us the same response.
There is no functions, so let's create a function and try again.
This command.
If there is no function, let's create a basic lambda function with default configuration.
For that purpose, open the list management console.
Open the lambda animation console.
Go to functions.
Create, function and create.
Default function.
Which name is my function?
I'm not going to change anything and create function.
The idea is that C functions with select commands.
For that purpose.
I'm creating basic lambda function.
After that we will listing the functions with our local computer.
Yes.
Successfully created the function.
So if you come back to our.
We just looked and run the same command list functions.
Now we can see the function that is in here.
You can see that there is a JSON response which including the function configurations, this is the
function name, runtime role and so on.
This is returning to us the function.
So we can also use some specific sailor commands.
You can see in here a the blue Islam, the gate function and providing the function name as a parameter.
So I'm copying this function select command and come here, paste in here.
So if you hit the enter this time we are getting the specific function with providing the function name
as a parameter of command.
We can see the response is the same as the before we run the command.
Basically it is returning all details of this function.
Okay, very good.
So where we can find all these commands for a lambda that is in documentation, you can see in here,
I'm also sharing this link on the video resources.
You can see the cell command reference documentation.
And for Lambda, if you come to Lambda Page, you can see all available commands.
There is lots of commands and we will use also these create function, command, delete, function,
get, function, get alias and list functions.
You can see that these are the commands for the Lambda Islamic operations.
So basically the Lambda API reference provides information about each the API methods, including details
about the parameters in each API request and the response.
So we can see the all available commands.
And for example, we using the list functions.
And when we're using the list function select commands, you can see the options in here.
There is lots of options can be applied.
These see commas and see the place in here.
Here you can see the example and the example output for the list function command.
As you can see that we have two options.
The first one is the cloud shell, and the second one local computer terminal or the command window.
And we will use select commands with our computer because we have configured it and we will follow the
second option, which is we just do the code command window and we already use the commands from our
visual application.