You are on page 1of 9

Aldel Education Trust’s

St. John College of Engineering and Management, Palghar


NAAC Accredited with Grade A
Department of Information
Technology A.Y. 2021-2022
Subject: Advanced DevOps lab

Class: T.E-I.T Div: A

Student Name: Adnan Khan Roll No: 21


Experiment No.: - 11
Experiment Title: - To understand AWS lambda, its workflow various functions and create
your first Lambda functions using Python/ Java/ Nodejs.
Date of Performance: Date of Submission:

Theory: -
AWS Lambda is a serverless computing service that allows you to run code without having
to deploy or manage servers, create workload-aware cluster scaling logic, maintain event
integrations, or manage runtimes. With Lambda, you can run code for almost any form of
application or backend service with no management. Simply submit your code as a ZIP file
or container image, and Lambda will automatically and accurately assign compute execution
power and run your code in response to each incoming request or event, regardless of scale.
You may configure your code to be triggered automatically by over 200 AWS services and
SaaS apps, or you can call it directly from any web or mobile app. You may develop Lambda
functions in your favourite language (Node.js, Python, Go, Java, and others) and leverage
serverless and container tools to build, test, and deploy your functions, such as AWS SAM or
Docker CLI.

Benefits:
There are no servers to administer.
AWS Lambda runs your code without you having to provision or maintain
infrastructure. Simply write the code and publish it to Lambda as a ZIP file or as
a container image.
Continuous scaling
AWS Lambda grows your application automatically by running code in response to each
event. Your code works in parallel and processes each trigger separately, scaling perfectly
with the workload size, from a few requests per day to hundreds of thousands per second.
Cost optimized with millisecond metering
You only pay for the computing time you use with AWS Lambda, so you're never paying for
over-provisioned infrastructure. You are charged for each millisecond that your code
executes as well as the number of times it is triggered. You may save an extra 17% with
Compute Savings Plan.
Consistent performance at any scale
You may minimise your code execution time using AWS Lambda by selecting the
appropriate memory size for your function. By enabling Provisioned Concurrency, you may
additionally keep your functions initialised and hyper-ready to reply in double digit
milliseconds.

Steps: -
1) Go to Amazon console and select Lambda Service

2) Click on Function and then on “create function”


3) Give Function name and select Programming Language.

4) Function will be created!


E
5) Edit the Python code and click on “Deploy”.

6) Click on “Test”, then on “Configure test event” and give the event
name.
5) Click on “Test”
6) Go to Monitor in Nav and Observe CloudWatch metrics.

7) Go to Configuration and Click on


“trigger”. In Trigger configuration, select
“API gateway”.
7) Select URL of API gateway and run it in multiple tabs

8) Go to CloudWatch Services and View logs in CloudWatch


9) Then go back to Lambda and Observe CloudWatch Metrics.

Conclusion: - Hence, we have understood the concepts of AWS lambda.


Ms. Tanvi Patil
Subject In-charge

You might also like