Can a CloudFront distribution have a chain of failover origins?

0

I'm using CloudFormation to create a CloudFront distribution. CloudFront doesn't seem to let me set OriginId of an origin group member to an origin group ID, even though the docs seem to suggest that origin IDs and origin group IDs are interchangable. I'm trying to avoid using a Lambda just to achieve multiple failovers for a resource path.

This is the error I get back from CloudFormation:

Invalid request provided: The parameter Members has one or more origins [OriginGroupB] for origin group OriginGroupA that aren't valid. Origins that you specify for an origin group must be associated with the distribution.

How can I get my distribution to failover more than once?

In other words, if my secondary origin responds with 404, I want a third origin to be tried.

已提問 2 年前檢視次數 159 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南