From ce4528807d66cd7d82d0ac74ef7a442f66adc2b4 Mon Sep 17 00:00:00 2001 From: Tomasz Czubocha Date: Thu, 8 Apr 2021 18:28:18 +0200 Subject: [PATCH 1/2] resource/aws_xray_sampling_rule fix rule name max length --- aws/resource_aws_xray_sampling_rule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/resource_aws_xray_sampling_rule.go b/aws/resource_aws_xray_sampling_rule.go index 772b777d8eec..24f200bd4cae 100644 --- a/aws/resource_aws_xray_sampling_rule.go +++ b/aws/resource_aws_xray_sampling_rule.go @@ -27,7 +27,7 @@ func resourceAwsXraySamplingRule() *schema.Resource { Type: schema.TypeString, Optional: true, ForceNew: true, - ValidateFunc: validation.StringLenBetween(1, 128), + ValidateFunc: validation.StringLenBetween(1, 32), }, "resource_arn": { Type: schema.TypeString, From c5925aabc7d09357a3490748d36df5724e4f98ca Mon Sep 17 00:00:00 2001 From: Tomasz Czubocha Date: Thu, 8 Apr 2021 19:33:32 +0200 Subject: [PATCH 2/2] Update CHANGELOG for #18667 --- .changelog/18667.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/18667.txt diff --git a/.changelog/18667.txt b/.changelog/18667.txt new file mode 100644 index 000000000000..120c908fb7b7 --- /dev/null +++ b/.changelog/18667.txt @@ -0,0 +1,3 @@ +```release-note:bug + resource/aws_xray_sampling_rule: Change the maximum length of `rule_name` from 128 to 32 +```