From 48d5a995ea6738abeccb2ec944d6b12c90a9e927 Mon Sep 17 00:00:00 2001 From: Argishti Rostamian Date: Wed, 2 Oct 2019 16:22:16 -0700 Subject: [PATCH] resource/cloudfront_distribution: Set MaxItems 2 on origin group members, update documentation --- aws/resource_aws_cloudfront_distribution.go | 1 + website/docs/r/cloudfront_distribution.html.markdown | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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