analyze_function
Analyze a single Lambda function to identify infrastructure issues: tables queried, scan vs query, queue publishing, secret access, and correct trigger event shape. Get findings scoped to that function.
Instructions
Analyzes a single named function or Lambda handler for infrastructure issues: which tables it queries, how it queries them (scan vs query), queue publishing, secret access, and the correct event shape for each trigger (SQS, DynamoDB Streams, Kinesis, EventBridge). Call this before writing or reviewing a Lambda handler to get the exact trigger event shape and all findings scoped to this function. Returns found: false if the function name was not discovered during analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | Yes | Function name to analyze |