AWS Lambda
AWS Lambda
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
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