Skip to main content
OpenSRE integrates with AWS Lambda to inspect function configuration, retrieve recent invocation logs from CloudWatch, and investigate runtime failures during incident response.

Prerequisites

  • An AWS account with AWS Lambda functions
  • AWS credentials configured for the runtime
  • Permission to access Lambda and CloudWatch Logs

Setup

Option 1: Interactive CLI

Select AWS Lambda when prompted.

Option 2: Environment variables

Add the following to your .env:

Verify

Expected output:

Investigation tools

When investigating AWS Lambda alerts, OpenSRE provides:
  • Lambda Configuration — inspect runtime, handler, timeout, memory, IAM role, environment variables, and deployed version.
  • Lambda Inspect — retrieve deployment package metadata and inspect function contents when available.
  • Lambda Invocation Logs — retrieve recent invocation logs from CloudWatch Logs.
  • Lambda Errors — investigate recent runtime failures and execution errors.
All operations are read-only.

Gotcha

Lambda invocation history is retrieved from CloudWatch Logs. Ensure the configured AWS credentials have permission to access both AWS Lambda and CloudWatch Logs, otherwise log retrieval may fail even if Lambda access succeeds.