Failover criteria in CloudFront

0

Hi, is it possible to add 429 HTTP code to failover criteria in origin group of Cloudfront service?

Currently the only way I know of this, is remap code 429 to another supported by Origin group code. I'd like to handle request with different origin if the first one can't.

Regards, Przemek

Przemek
asked a year ago315 views
1 Answer
0

Hello,

You need to create an origin group with two origins: a primary and a secondary. If the primary origin is unavailable, or returns specific HTTP response status codes that indicate a failure, CloudFront automatically switches to the secondary origin. The following diagram shows how origin failover works.

Enter image description here

Please go through the below link to know more about this.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html

Thanks, Gautam

profile pictureAWS
answered a year ago
  • Sorry for the misunderstanding, I know how to set up origin group.

    In the console only available HTTP codes are: 400, 403, 404, 416, 500, 502, 503 and 504.Maybe this is the wrong place for this question, I mean improve the Cloud front service so that the 429 code is also available in failover criteria in origin group settings.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions