Diagnose connectivity failures between the Claude Compliance Collector Lambda functions and AI Guard or the Anthropic Compliance API using CloudWatch Logs.
Procedure
- Check the relevant CloudWatch log group for
exhausted_retriesevents whereerror_classisRateLimitedErroranderror_messagestarts withNetwork error on:-
/aws/lambda/claude-compliance-collector-process-chat— Check for both AI Guard and Anthropic connectivity errors during chat processing. -
/aws/lambda/claude-compliance-collector-list-activities— If the Anthropic Compliance API is unreachable, the error often surfaces here beforeProcessChatsees a problem.
Theerror_messagefield indicates the source of the issue:-
Network error on POST https://<your-ai-guard-host>/...— The Lambda cannot reach the AI Guard endpoint. -
Network error on GET https://api.anthropic.com/...— The Lambda cannot reach the Anthropic Compliance API.

Note
Plain 429 rate-limit errors showerror_messagestarting withRate limited (429) on, notNetwork error on. If you do not seeNetwork error on, the issue is not a connectivity problem. -
