analyze_function
Analyze a Lambda function to detect infrastructure issues: query patterns, queue publishing, secret access, and trigger event shape validation. Returns scoped findings.
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 |