Check ID: cloudfront_distributions_multiple_origin_failover_configured
Provider: AWS
Service: cloudfront
Severity: LOW
Categories: resilience
Resource type: AwsCloudFrontDistribution

What this check verifies

CloudFront distributions are evaluated for an origin group configured with at least 2 origins to support automatic origin failover.

Risk

Without origin failover, the origin becomes a single point of failure. Origin outages, regional incidents, or targeted DoS can cause downtime, elevated error rates, and latency, degrading availability and impacting user experience and SLAs.

Recommendation

Enable origin failover by defining an origin group with primary and secondary origins. Distribute origins across independent zones or providers, set clear failover criteria (e.g., HTTP codes/timeouts), monitor health, and routinely test failover. Align with resilience and defense-in-depth to protect availability.

Remediation

aws cloudfront get-distribution-config —id <DISTRIBUTION_ID> —output json > current-config.json && echo ‘Manually edit current-config.json to add OriginGroups with two origins and FailoverCriteria, then run:’ && echo ‘aws cloudfront update-distribution —id <DISTRIBUTION_ID> —distribution-config file://current-config.json —if-match $(aws cloudfront get-distribution-config —id <DISTRIBUTION_ID> —query “ETag” —output text)’

References

Where this check fires

This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable by Check ID = cloudfront_distributions_multiple_origin_failover_configured. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks