terraform-ibm-modules/stack-retrieval-augmented-generation

test: Destroy path

Closed this issue · 3 comments

Description

Undeploy the stack - verify that ALL resources are deleted (check in resource controller)

Context: #17

New or affected modules


By submitting this issue, you agree to follow our Code of Conduct

There any two approaches to undeploy the stack and delete all the resources:-

  • Delete the project and it will undeploy all the resources associated with the project before deleting.
  • Undeploy the stack one by one through the UI.

For the first case, I deleted the project and it started deleting all the DA's at once and since undeploying doesn't happen in the correct order it failed to delete the stack and the associated resources.

image

image

The second case regarding un-deploying the stack one by one(from bottom to top) followed by Project deletion via UI worked fine(once).

However, when destroying the stack many have seen that sampleGenerative_AI_Sample_App_CI_Project code engine left behind in the resource group. This seems to be created by one of the DA's and not stored in the terraform state. This causes the resource group deletion to fail and this should be documented in the readme that the code engine should be manually deleted before destroying the stack/project.

Furthermore, container registry namespace are not deleted either so should be documented.