Cloudfront 502 Troubleshooter

Diagnoses CloudFront 502 and 504 errors via a fourteen-layer decision tree covering origin connection timeouts to ALB/NLB/S3 custom origins, SSL/TLS protocol and cipher mismatch between CloudFront and the origin, origin response too large, custom origin header validation failure, Lambda@Edge function runtime errors, S3 origin access control (OAC) misconfiguration, multi-origin failover, geographic restriction blocking, field-level encryption errors, response timeout (504), origin shield routing, distribution deployment state, and cached error responses where a Custom Error Response with high TTL hides a transient origin failure. Walks x-edge-result-type and x-cache headers, origin probe results, and distribution config to a verified root cause. Emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA with the specific failure layer and the probe output that confirms it.

jhkchan Updated

File contents

jhkchan/aws-agent-skills commit bc8f04614a

Frequently asked questions

npx get-skill add jhkchan/cloudfront-502-troubleshooter