Deploying‐lamda‐by‐using‐serverless - amresh087/newronaRepos GitHub Wiki
Deploying first function with serverless
create serverless create --help
Note :- serverless having shortcut sls
sls create --template google-python --path hello-world-python
Now we need to install vs code then we can open it in the vs code like below
But above project is python so we need install some more setup. Hence we are not going to use it. Let us we create node.js project
So let create node js
open cmd -> sls ----> enter
Now select first option AWS --> Node js --> Starter --->Enter
Enter project name then enter
First time it will open one url in browser now you need to register in serverless web site because it is open in Brower URL or you can direct login by using github user and password
Now project is created and asking for deployment then y
Now aws lamda function is deployed successfully
Test lamda function on aws
Click on the test button --->>
Now you need to click on deploy button -->>
Now click on the test button then it will run