diff --git a/aws/resource_aws_cloudfront_distribution.go b/aws/resource_aws_cloudfront_distribution.go index 0e28477e395..d66be8f4cb1 100644 --- a/aws/resource_aws_cloudfront_distribution.go +++ b/aws/resource_aws_cloudfront_distribution.go @@ -519,6 +519,7 @@ func resourceAwsCloudFrontDistribution() *schema.Resource { Type: schema.TypeList, Required: true, MinItems: 2, + MaxItems: 2, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "origin_id": { diff --git a/website/docs/r/cloudfront_distribution.html.markdown b/website/docs/r/cloudfront_distribution.html.markdown index b179609054c..7d0278c4905 100644 --- a/website/docs/r/cloudfront_distribution.html.markdown +++ b/website/docs/r/cloudfront_distribution.html.markdown @@ -457,7 +457,7 @@ argument is not required. * `failover_criteria` (Required) - The [failover criteria](#failover-criteria-arguments) for when to failover to the secondary origin - * `member` (Required) - Ordered [member](#member-arguments) configuration blocks assigned to the origin group, where the first member is the primary origin. Minimum 2. + * `member` (Required) - Ordered [member](#member-arguments) configuration blocks assigned to the origin group, where the first member is the primary origin. You must specify two members. ##### Failover Criteria Arguments