0% found this document useful (0 votes)
12 views9 pages

AWS Lambda

AWS Lambda is a serverless compute service that allows users to run code in response to events without managing servers, offering benefits like automatic scaling and pay-as-you-go pricing. It supports multiple programming languages and is suitable for various use cases, including data processing and event-driven applications. The document outlines the workflow for creating a Lambda function, setting triggers, and testing it with S3 bucket uploads for notifications.

Uploaded by

Dhirendra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views9 pages

AWS Lambda

AWS Lambda is a serverless compute service that allows users to run code in response to events without managing servers, offering benefits like automatic scaling and pay-as-you-go pricing. It supports multiple programming languages and is suitable for various use cases, including data processing and event-driven applications. The document outlines the workflow for creating a Lambda function, setting triggers, and testing it with S3 bucket uploads for notifications.

Uploaded by

Dhirendra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

SUSHANT AHER

Why Lambda?
AWS Lambda is a compute service that runs your code in
response to events and automatically manages the compute
resources, making it the fastest way to turn an idea into a
modern, production, serverless applications.

Benefits of Lambda
• No need for managing servers
• Automatic scaling
• Pay-as-you-go pricing
• Performance optimization

Use cases
• Quickly process data at scale
• Run interactive web and mobile backends
• Enable powerful ML insights
• Create event-driven applications

Supports Multiple Languages


• Node.js
• Python
• Java
• Go
• Ruby
• .NET Core

Workflow:
• Write the Code: Write a function in the supported language of
your choice.
• Define a Trigger: Specify the event that will invoke your Lambda
function.
• Deploy and Monitor: Deploy the function to AWS Lambda and
monitor its execution using AWS CloudWatch.
Function in lambda -
• Select Create Function
• Select author from scratch
• Function name –
• Create function
For execution -
• Select configuration
• Function URL
• Create function URL
• Name-
• Save
• Copy function URL and Test.

Task –
If any object upload in my s3 bucket then with the
help of lambda notify me in mail.
Step 1) Create lambda function
Step 2) Create trigger
Step 3) Add destination
Step 4) Testing
Create function

See code

For execution create function url.


Test our python default code.

Change some code.

Deploy this code .


Create s3 bucket and test it first uploading any
object.

Add trigger in our lambda function.

Create topic with subscription.


Add destination in our lambda function.

Testing by uploading object.

You might also like