CREATE AWS LAMBDA USING SERVERLESS FRAMEWORK DEMO | InterviewDOT
134 views · Published 7 October 2018 · 11:35 · Indexed 8 November 2026
Channel: Interview DOT · 2018 · Science & Technology
Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Serverless Framework:
The Serverless Framework is a free and open-source web framework written using Node.js.
The Serverless Framework is a CLI tool that allows users to build & deploy auto-scaling, pay-per-execution, event-driven functions.
Platforms : AWS, Microsoft Azure, IBM OpenWhisk, Google Cloud Platform, etc.
Reference : https://serverless.com/framework/docs/
How to create AWS Lambda using Serverless Framework ?
Ways to create a AWS lambda :
1. Using AWS console
2. Cloudformation templates
3. Serverless framework CLI tool
In this video, lets create AWS lambda using serverless tool.
Prerequisite :
1. AWS account [Trial account for learning]
2. Install serverless framework on your pc
3. Login to AWS console.
1. Create a folder : mkdir firstlambda && cd firstlambda
2. sls create --template aws-nodejs --path student-service --name student
3. update the apigateway and region eu-west-1
4. add the events for API gateway
events:
- http:
path: student
method: get
5. sls deploy
6. check the created lambda in AWS console.
7. Test the created lambda using postman.
The Serverless Framework helps you build serverless apps with radically less overhead and cost. It provides a powerful, unified experience to develop, deploy, test, secure and monitor your serverless applications.
The Serverless Framework consists of an open source CLI that makes it easy to develop, deploy and test serverless apps across different cloud providers, as well as a hosted Dashboard that includes features designed to further simplify serverless development, deployment, and testing, and enable you to easily secure and monitor your serverless apps.
If you are new to serverless and want to experience how fast and easy it is to build a serverless app, or if you are an experienced user of the Serverless Framework open source CLI and want to explore new features of the Framework,
All the best, If you wish, please Like, Share, Subscribe :)
More from this channel
-
7:19
java pass by value
-
3:19
java interview best books
-
8:03
Explain java finally block
-
4:29
what are the advantages of OOPL Java Interview
-
2:40
what is java decompiler how to decompile java code
-
5:51
Top 4 Job Interview Tips How to prepare for Job interview
-
5:29
Top Job Interview TIPS What are your strengths How to answer
-
3:49
Top 16 Job Interview Questions Best Job Interview Questions