Skip to content

Commit

Permalink
fix(kendra): regex validation for index_id
Browse files Browse the repository at this point in the history
  • Loading branch information
GlennChia committed Jun 22, 2022
1 parent ee04e89 commit 540d3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/kendra/index_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
),
},
Expand Down

0 comments on commit 540d3a4

Please sign in to comment.