CREATE AWS LAMBDA USING SERVERLESS FRAMEWORK DEMO | InterviewDOT
134 views · Published 7 October 2018 · 11:35 · Indexed 20 September 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
-
1:43
Java Interview Question And Answer Eight Primitive Types in Java What Java Interview
-
3:37
Java Interview Question And Answer Different Thread States True or False Interview Question
-
2:13
Java Interview Question And Answer What would you use to compare == And equals Java Interview Quest
-
1:16
Java Interview Question And Answer When a thread blocks on IO, what state does it enter
-
3:21
What is NullPointerException in Java Java Interview Question And Answer NullPointerException
-
3:54
What is Reflection in Java Java Interview Question And Answer
-
2:42
Volatile in Java
-
1:28
Java primitive are passed by value Explain