From 83ede2c1825d34d4ad3b1db75a545225f9426d53 Mon Sep 17 00:00:00 2001 From: Piers Karsenbarg Date: Thu, 10 Nov 2022 10:36:27 +0000 Subject: [PATCH 1/3] Update validation rule in appstream stack resource Redirect URL did have a maximum length of 100, but should be 1000 --- internal/service/appstream/stack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/appstream/stack.go b/internal/service/appstream/stack.go index 79cc0a91556..93597b51541 100644 --- a/internal/service/appstream/stack.go +++ b/internal/service/appstream/stack.go @@ -75,7 +75,7 @@ func ResourceStack() *schema.Resource { "settings_group": { Type: schema.TypeString, Optional: true, - ValidateFunc: validation.StringLenBetween(0, 100), + ValidateFunc: validation.StringLenBetween(0, 1000), }, }, }, From 692fe364369fe2fdce835c443dc5425a359fe571 Mon Sep 17 00:00:00 2001 From: Piers Karsenbarg Date: Tue, 15 Nov 2022 11:21:53 +0000 Subject: [PATCH 2/3] Set string length to the redirect_url --- internal/service/appstream/stack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/service/appstream/stack.go b/internal/service/appstream/stack.go index 93597b51541..c32706368f5 100644 --- a/internal/service/appstream/stack.go +++ b/internal/service/appstream/stack.go @@ -75,7 +75,7 @@ func ResourceStack() *schema.Resource { "settings_group": { Type: schema.TypeString, Optional: true, - ValidateFunc: validation.StringLenBetween(0, 1000), + ValidateFunc: validation.StringLenBetween(0, 100), }, }, }, @@ -129,7 +129,7 @@ func ResourceStack() *schema.Resource { Type: schema.TypeString, Optional: true, Computed: true, - ValidateFunc: validation.StringLenBetween(0, 100), + ValidateFunc: validation.StringLenBetween(0, 1000), }, "storage_connectors": { Type: schema.TypeSet, From cb620d1783f8d2a20036f40af9bf248f1a4fa769 Mon Sep 17 00:00:00 2001 From: Jared Baker Date: Tue, 15 Nov 2022 09:43:09 -0500 Subject: [PATCH 3/3] r/aws_appstream_stack: add changelog entry --- .changelog/27744.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/27744.txt diff --git a/.changelog/27744.txt b/.changelog/27744.txt new file mode 100644 index 00000000000..a51b3c17b1a --- /dev/null +++ b/.changelog/27744.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_appstream_stack: Fix `redirect_url` max character length +```