From a2a17e26e05d17e9745f217740ea495466713a9b Mon Sep 17 00:00:00 2001 From: Preston Norvell Date: Fri, 26 May 2023 14:22:16 -0700 Subject: [PATCH 1/3] Removes the upper bound on origin_keepalive_timeout because this can be set arbitrarily by AWS Support --- 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 8df20d239b3..75f7696ea20 100644 --- a/internal/service/cloudfront/distribution.go +++ b/internal/service/cloudfront/distribution.go @@ -545,7 +545,7 @@ func ResourceDistribution() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 5, - ValidateFunc: validation.IntBetween(1, 180), + ValidateFunc: validation.IntAtLeast(1), }, "origin_read_timeout": { Type: schema.TypeInt, From 6515348ad0d308cfac00e9ff728d0c06add66558 Mon Sep 17 00:00:00 2001 From: Preston Norvell Date: Fri, 26 May 2023 15:14:23 -0700 Subject: [PATCH 2/3] add changelog item --- .changelog/31608.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/31608.txt diff --git a/.changelog/31608.txt b/.changelog/31608.txt new file mode 100644 index 00000000000..85cda004539 --- /dev/null +++ b/.changelog/31608.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_cloudfront_distribution: remove an artificial upper limit on `origin_keepalive_timeout` +``` \ No newline at end of file From a8eeb83489ff2fce3724b2cfc828adac16d5ce55 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Tue, 30 May 2023 07:16:32 -0400 Subject: [PATCH 3/3] Update 31608.txt --- .changelog/31608.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changelog/31608.txt b/.changelog/31608.txt index 85cda004539..d255c3e3401 100644 --- a/.changelog/31608.txt +++ b/.changelog/31608.txt @@ -1,3 +1,3 @@ ```release-note:bug -resource/aws_cloudfront_distribution: remove an artificial upper limit on `origin_keepalive_timeout` -``` \ No newline at end of file +resource/aws_cloudfront_distribution: Remove the upper limit on `origin_keepalive_timeout` +```