Dropping a dynamo table doesn't delete the opensearch index associated to it #1822
Open
Description
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:
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- I have removed any sensitive information from my code snippets and submission.