From 00e745703075c310c885183a02fe14d6cbb84a40 Mon Sep 17 00:00:00 2001 From: Matteo Cartuccia Date: Tue, 6 Apr 2021 14:30:11 +0100 Subject: [PATCH 1/2] fix: resource_aws_ssm_parameter description and allowed_pattern validation --- aws/resource_aws_ssm_parameter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws/resource_aws_ssm_parameter.go b/aws/resource_aws_ssm_parameter.go index b9d6ad46a9f..9bcc1e4e321 100644 --- a/aws/resource_aws_ssm_parameter.go +++ b/aws/resource_aws_ssm_parameter.go @@ -40,7 +40,7 @@ func resourceAwsSsmParameter() *schema.Resource { "description": { Type: schema.TypeString, Optional: true, - ValidateFunc: validation.StringLenBetween(1, 1024), + ValidateFunc: validation.StringLenBetween(0, 1024), }, "tier": { Type: schema.TypeString, @@ -87,7 +87,7 @@ func resourceAwsSsmParameter() *schema.Resource { "allowed_pattern": { Type: schema.TypeString, Optional: true, - ValidateFunc: validation.StringLenBetween(1, 1024), + ValidateFunc: validation.StringLenBetween(0, 1024), }, "version": { Type: schema.TypeInt, From aeca3c5d8de745c1a6b9338a0236767c7c257770 Mon Sep 17 00:00:00 2001 From: Angie Pinilla Date: Tue, 6 Apr 2021 11:08:22 -0400 Subject: [PATCH 2/2] Update CHANGELOG for #18588 --- .changelog/18588.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/18588.txt diff --git a/.changelog/18588.txt b/.changelog/18588.txt new file mode 100644 index 00000000000..605749dafbd --- /dev/null +++ b/.changelog/18588.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_ssm_parameter: Allow `allowed_pattern` and `description` arguments to be empty strings +```