From 2b1449f6ccaf954dbe057956f2c437994346a0d5 Mon Sep 17 00:00:00 2001 From: Angie Pinilla Date: Tue, 21 Jun 2022 13:16:40 -0400 Subject: [PATCH] r/s3_bucket_metric: remove validation from bucket; update name validation to be minimum 1 char --- internal/service/s3/bucket_metric.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/internal/service/s3/bucket_metric.go b/internal/service/s3/bucket_metric.go index a40d9d04a10..7f72be95f07 100644 --- a/internal/service/s3/bucket_metric.go +++ b/internal/service/s3/bucket_metric.go @@ -28,10 +28,9 @@ func ResourceBucketMetric() *schema.Resource { Schema: map[string]*schema.Schema{ "bucket": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringLenBetween(1, 64), + Type: schema.TypeString, + Required: true, + ForceNew: true, }, "filter": { Type: schema.TypeList, @@ -57,7 +56,7 @@ func ResourceBucketMetric() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - ValidateFunc: validation.StringLenBetween(0, 64), + ValidateFunc: validation.StringLenBetween(1, 64), }, }, }