Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small Naming Bug Related To Kendra Index if Prefix has length 10 or 14 #601

Open
wolfman-numba1 opened this issue Nov 5, 2024 · 0 comments

Comments

@wolfman-numba1
Copy link

According to the getName Util function, the name for resources is created using the following:

${prefix}-${value}

Any Kendra Indexes will fail to create if a prefix provided by a customer is of length 14 or 10 (if CMKs are selected via the config).

If a prefix of length 10 is used then the output name will be

0123456789-cmk-genaichatbot-workspaces and then shortened by the getName function to be: 1234567891-cmk-genaichatbot-

(which ends in a hyphen and results in the following error for the Kendra Index: "Invalid request provided: 1 validation error detected: Value 'qld-titles-cmk-genaichatbot-' at 'indexName' failed to satisfy constraint: Member must satisfy regular expression pattern: ^a-zA-Z0-9* (Service: Kendra, Status Code: 400, Request ID: 53513ed9-21ba-42f3-a7c5-8cae39dfd6a0)"

Similar will happen for any prefixes provided by customers of length 14:

01234567890123-genaichatbot-workspaces and then shortened by the getName function to be: 01234567890123-genaichatbot-
causing the same above error again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant