Log groups
| Log group | Fields of interest |
|---|---|
/aws/lambda/rag-sample-<env>-api | cold_start, RDS Data API client errors |
/aws/lambda/rag-sample-<env>-authorizer | correlation_id, cold_start, RDS Data API error on token lookup |
/aws/lambda/rag-sample-<env>-ingestion | RDS Data API and Bedrock call durations |
/aws/apigateway/rag-sample-<env>-api (access log) | requestId (joins the authorizer allow record’s correlation_id), sourceIp, status, responseLatency |
CloudWatch Logs Insights query to surface RDS Data API errors in the API Lambda log group:
fields @timestamp, @message| filter @message like /rds-data|RDS Data API|ExecuteStatement/| sort @timestamp desc| limit 50To find the authorizer’s allow record for one request, run the following in the authorizer log group, using the requestId from the access log entry. Deny records do not carry correlation_id.
fields @timestamp, @message| filter correlation_id = "<requestId>"| sort @timestampVPC Flow Logs are not enabled. No ENIs emit traffic inside the VPC today; see RAG010. If troubleshooting intra-VPC connectivity becomes necessary after a future architecture change, enable VPC Flow Logs on the VPC and publish to CloudWatch Logs or S3 before diagnosing.
© 2026 Benjamin Arunski