Cleanup

Congratulations, we have reached the end of the workshop. Here we showcase how we can clean up the resources we created.

  1. Navigate to your open Cloud9 console.

  2. Cleanup the s3 objects we manually uploaded in previous steps:

    aws s3 rm s3://$BUCKET_NAME/sample-documents/ --recursive
    
  3. Change directory and go to the frontend infrastructure directory. Destroy all created resources through pulumi

    cd ~/environment/parsectix-chatbot-workshop/frontend-infrastructure/
    pulumi destroy -s $WORKSPACE-frontend
    

    You should see an output similar to this:

DestroyFrontendPrompt

  1. Select yes to proceed.

  2. You should now see an output like the following indicating that all resources have been destroyed. DestroyFrontendConfirmation

  3. Follow the same steps to destroy the backend stack:

    cd ~/environment/parsectix-chatbot-workshop/backend-infrastructure/
    pulumi destroy -s $WORKSPACE-backend
    

    Select yes to proceed.