From 1e8f5d7e75baf09ffee9ad189186e998129c999e Mon Sep 17 00:00:00 2001 From: DrFaust92 Date: Fri, 7 Jan 2022 11:11:31 +0200 Subject: [PATCH 1/3] bump `origin_read_timeout` validation till `180` --- internal/service/cloudfront/distribution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/cloudfront/distribution.go b/internal/service/cloudfront/distribution.go index 95d63283eaf..a3e28654412 100644 --- a/internal/service/cloudfront/distribution.go +++ b/internal/service/cloudfront/distribution.go @@ -546,7 +546,7 @@ func ResourceDistribution() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 30, - ValidateFunc: validation.IntBetween(1, 60), + ValidateFunc: validation.IntBetween(1, 180), }, "origin_protocol_policy": { Type: schema.TypeString, From 7a98f5f8146e546ac4f574da51fd85b8d9b78a6d Mon Sep 17 00:00:00 2001 From: DrFaust92 Date: Fri, 7 Jan 2022 11:14:01 +0200 Subject: [PATCH 2/3] changelog --- .changelog/22461.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/22461.txt diff --git a/.changelog/22461.txt b/.changelog/22461.txt new file mode 100644 index 00000000000..830715c64fc --- /dev/null +++ b/.changelog/22461.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_cloudfront_distribution: `origin_read_timeout` validation fix #21034 +``` From 444c9d9b3cf9c9f434e5b7c5c82b84892ebd5c95 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Fri, 7 Jan 2022 09:19:19 -0500 Subject: [PATCH 3/3] Tweak CHANGELOG entry. --- .changelog/22461.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changelog/22461.txt b/.changelog/22461.txt index 830715c64fc..04e78b4d7e8 100644 --- a/.changelog/22461.txt +++ b/.changelog/22461.txt @@ -1,3 +1,3 @@ ```release-note:bug -resource/aws_cloudfront_distribution: `origin_read_timeout` validation fix #21034 +resource/aws_cloudfront_distribution: Increase the maximum valid `origin_read_timeout` value to `180` ```