Aws - Lambda Function

> AWS (Amazon Web Services)

1 - 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.
Advertising

3 - Use in AWS

Lambda is integrated with:

4 - Test

Advertising

5 - Invoke locally

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

6 - Workflow

7 - Layer

8 - Handle Error

9 - Documentation / Reference

aws/lambda.txt · Last modified: 2019/06/04 10:17 by gerardnico