AWS Lambda is a responsive cloud service that inspects actions within the application and responds by deploying the user-defined codes, known as functions.

AWS Lambda supports the code written in Java, Python and Node.js, and the service can launch processes in languages supported by Amazon Linux (includes Bash, Go & Ruby).

Following are some recommended tips while using AWS Lambda.

  • Write your Lambda function code in a stateless style.

How to Configure AWS Lambda?

Step 1 − Sign in to AWS account.

Step 2 − Select Lambda from AWS services section.

Step 3 − Select a Blueprint (optional) and click the Skip button.

Step 4 − Provide the necessary details to create a Lambda function as shown in the following screenshot and paste the Node.js code that will be triggered automatically whenever a new item is added in DynamoDB. Select all the required permissions.

Step 5 − Click the Next button and verify your details.

Step 6 − Click the Create Function button.

Now, when we select the Lambda service and select the Event Sources tab, there will be no records. Add at least one source to the Lambda function to work. Here, we are adding DynamoDB Table to it.

We have created a table using DynamoDB (we will discuss this in detail in DynamoDB chapter).

Step 7 − Select the stream tab and associate it with the Lambda function.

You will see this entry in Event Sources Tab of Lambda Service page.

Step 8 − Add some entries into the table. When the entry gets added and saved, then Lambda service should trigger the function. It can be verified using the Lambda logs.

Step 9 − To view logs, select the Lambda service and click the Monitoring tab. Then click the View Logs in CloudWatch.

Benefits of AWS Lambda

  • Lambda tasks need not to be registered like Amazon SWF activity types.

For latest updated limit structure & more information, visit − https://docs.aws.amazon.com/lambda/latest/dg/limits.html/

--

--

--

Research Intern at ISRO.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Annotation Tool Part 2: Retrospective on the Build

Crodo and Gelato goes into Partnership

Practical Synchronization with Go

インフラエンジニア日記 #61 2021 1/25 ~ 1/29

This is my first time writing a blog.

Learn SQL Server Management Studio — Part 10 Export Tables by Email as .CSV

10 Critical Factors for Evaluating an Enterprise Mobility Platform

AWS IoT without having to RTFM

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Prishita Kapoor

Prishita Kapoor

Research Intern at ISRO.

More from Medium

AWS CDK: attach permissions to existing role

aws_s3_file & aws_s3_bucket

AWS DynamoDB Admin

Oracle licenses on AWS (illustrated)