amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

Dropping a dynamo table doesn't delete the opensearch index associated to it

Open adeldueast opened this issue 2 years ago • 5 comments

How did you install the Amplify CLI?

yarn

If applicable, what version of Node.js are you using?

18.16.0

Amplify CLI Version

12.3.0

What operating system are you using?

windows

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No

Describe the bug

When a table that utilizes the "@searchable" attribute and contains data is deleted, the associated OpenSearch index is not removed. Furthermore, the documents within the index persist even after the table has been removed.

Expected behavior

Opensearch index should be removed or at least emptied

Reproduction steps

create a graphql api create a table add @searchable to the model table add data to the dynaomdb table delete the table the opensearch index associated to the table should be deleted (or emptied at least)

Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • [X] I have removed any sensitive information from my code snippets and submission.

adeldueast avatar Aug 24 '23 17:08 adeldueast