From 540d3a49d7e7498b29e660af95a4cfc421e163f2 Mon Sep 17 00:00:00 2001 From: GlennChia Date: Wed, 22 Jun 2022 01:10:56 +0000 Subject: [PATCH] fix(kendra): regex validation for index_id --- internal/service/kendra/index_data_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/kendra/index_data_source.go b/internal/service/kendra/index_data_source.go index 5bac0423c70..5c33edf8df9 100644 --- a/internal/service/kendra/index_data_source.go +++ b/internal/service/kendra/index_data_source.go @@ -128,7 +128,7 @@ func DataSourceIndex() *schema.Resource { Type: schema.TypeString, Required: true, ValidateFunc: validation.StringMatch( - regexp.MustCompile(`[a-zA-Z0-9]{1}[a-zA-Z0-9-]{0,35}`), + regexp.MustCompile(`[a-zA-Z0-9][a-zA-Z0-9-]{35}`), "Starts with an alphanumeric character. Subsequently, can contain alphanumeric characters and hyphens. Fixed length of 36.", ), },