Docs show, and validation allows more than 2 members in an origin_group #9389
Labels
documentation
Introduces or discusses updates to documentation.
enhancement
Requests to existing resources that expand the functionality or scope.
service/cloudfront
Issues and PRs that pertain to the cloudfront service.
Community Note
Terraform Version
v0.11.11
Affected Resource(s)
Terraform Configuration Files
origin_id
values are valid and refer toorigin
blocksDebug Output
(output is very short)
Expected Behavior
Terraform docs should note that there is a limit of 2
member
blocks for anorgin_group
based on AWS docs + behavior.For better error reporting, terraform itself should indicate more than 2 members in an
origin_group
is invalidhttps://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html
To get started, create an origin group in which you designate a primary origin for CloudFront plus a second origin that CloudFront automatically switches to when the primary origin returns specific HTTP status code failure responses.
This feature does not support more than 2 members in the origin group.
Actual Behavior
Terraform reports an AWS error that you can only supply less than or equal than 2 members in an origin group.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: