AWS_Session_3_13-06-2023 (1)
AWS_Session_3_13-06-2023 (1)
AWS Session
Summary 13-06-2023
● Serverless is a concept where you can run your code, handle data, and
integrate applications without the need for manual server management.
Instead of worrying about the server infrastructure, you can focus on writing
and deploying your code, and the underlying infrastructure is abstracted
away from you.
● Serverless Architecture saves money by only charging you for what you
use. It eliminates the need for you to pay for idle servers or upfront
infrastructure costs. With serverless, resources are automatically scaled
based on demand, so you don't have to worry about overpaying for unused
capacity. This cost-efficient approach ensures that you only pay for the
specific services and resources that are actively utilized, helping you
optimize your expenses.
● For Creating the lambda function on the left side click on the function and
click on create function.
● In Function, developers have to write code in which language they feel like
if developers write code in Python language in ec2. we have to launch ec2
and install python runtime but in lambda, we don’t have to install any kind
of software or runtime. We just have to choose a runtime in which language
developers write code.
● After Successfully creating a function just scroll down and go to the code
source and type our code in the lambda function.
● After writing the code just click on Deploy. Deploy means we make changes
in the code now we have to update it. Every time we make changes in the
code click on Deploy to update the code.
● After Clicking on the Test. just set the name for the event and save it.
● After Saving Again click on the Test and it will give you the response
whatever you wrote in the code.
● If we go to the Function Logs and see the output in REPORT it will show
you the Billed Duration and how much is used for running.
● In the above image you will see the billed duration is 2 ms means AWS will
charge you only for 2 ms.