[bug report] The issue of being unable to delete Bedrock Knowledge resources depending on the language

0

Issue: Attempted to delete Knowledge Bases in the AWS Console, but the deletion was unsuccessful.

Cause: The issue occurred because the associated OpenSearch Serverless instance, created alongside the Knowledge Bases, was deleted first.

Error on Deletion Attempt: "Unable to delete data from vector store for data source with ID [Your ID]. Check your vector store configurations and permissions and retry your request. If the issue persists, consider updating the dataDeletionPolicy of the data source to RETAIN and retry your request." Error on Deletion Attempt

Upon following the guidance to change the "dataDeletionPolicy" of the data source to "RETAIN," the following error appeared:

Error on Changing to "RETAIN": "1 validation error detected: Value '유지' at 'dataDeletionPolicy' failed to satisfy constraint: Member must satisfy enum value set: [RETAIN, DELETE]"

Resolution: Switch the AWS Console language to English. Change To Languages Result : Deletion Successful.

1 Answer
0

Thank you for reporting this issue. It appears you've encountered a localization bug in the AWS Console related to deleting Bedrock Knowledge resources.

The root cause of the initial deletion failure was that the OpenSearch Serverless instance associated with the Knowledge Bases was deleted before attempting to delete the Knowledge Bases themselves. This can lead to the error you encountered, suggesting to check vector store configurations and permissions.

When you tried to follow the guidance to change the dataDeletionPolicy to RETAIN, you encountered a validation error. This error occurred because the console was set to a non-English language (likely Korean, based on the '유지' value), and the system was not properly translating or accepting the localized value for "RETAIN".

The solution you found - switching the AWS Console language to English - is indeed the correct workaround for this issue. In English, the console correctly recognizes "RETAIN" as a valid enum value for the dataDeletionPolicy.

This appears to be a bug in the AWS Console's localization, where it's not properly handling translated enum values in certain languages. It's important to note that while changing the language to English resolved the issue, this is not an ideal long-term solution. AWS should ensure that their console functions correctly in all supported languages.

For anyone else encountering this issue:

  1. First, avoid deleting the OpenSearch Serverless instance before deleting the Knowledge Bases.
  2. If you've already deleted the OpenSearch instance, try changing the dataDeletionPolicy to RETAIN.
  3. If you encounter a validation error when changing the policy, switch your AWS Console language to English and try again.
  4. After successfully changing the policy to RETAIN, you should be able to delete the Knowledge Base.

It would be beneficial to report this localization bug to AWS support so they can address it in future updates.
Sources
Bedrock Knowledge base - Delete unsuccessful | AWS re:Post
Resolve the "Failed to delete knowledge base" error in Bedrock | AWS re:Post
Cannot delete data source or knowledge base | AWS re:Post

profile picture
answered 10 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions