Aws - Lambda Function

Card Puncher Data Processing

Aws - Lambda Function

About

AWS Lambda run code in response to events such as an HTTP request.

A lambda function (Serverless code) can defined using AWS SAM.

Every Lambda function has an IAM role associated with it. This role defines what other AWS services the function is allowed to interact with.

AWS Lambda automatically monitors Lambda functions and reports metrics through Amazon CloudWatch. To help you monitor your code as it executes, Lambda automatically tracks the number of requests, the latency per request, and the number of requests resulting in an error and publishes the associated metrics. (Select Monitoring to view the log).

You can leverage these metrics to set custom alarms with Amazon CloudWatch

The Monitoring tab will show six CloudWatch metrics:

  • Invocation count,
  • Invocation duration,
  • Invocation errors,
  • Throttled invocations,
  • Iterator age,
  • and DLQ errors.

Use in AWS

Lambda is integrated with:

Test

amplify function invoke <resourcename>

See also: Testing and Debugging Serverless Applications

Invoke locally

With the AWS SAM CLI, you can invoke Lambda functions locally.

Workflow

See Step

Layer

https://aws.amazon.com/blogs/compute/working-with-aws-lambda-and-lambda-layers-in-aws-sam/

Handle Error

https://aws.amazon.com/getting-started/tutorials/handle-serverless-application-errors-step-functions-lambda/?trk=gs_card

Framework

Documentation / Reference





Discover More
Aws User Click Event Processing Architecture
Aws - Kinesis Data Firehose Delivery Stream

Amazon Kinesis Data Firehose is a simple service for delivering real-time streaming data to destinations. It is part of the Kinesis streaming data platform Delivery streams load data, automatically and...



Share this page:
Follow us:
Task Runner