Cleanup

Hopefully you’ve enjoyed the workshop and learned a few new things. Now follow these steps to make sure everything is cleaned up.

  1. In the terminal, run below command to delete online:

    cd /home/ec2-user/environment/recommender-system-dev-workshop-code/scripts
    nohup ./setup-rs-system.sh clean-online >> ~/nohup.log 2>&1 &
    tail -f ~/nohup.log
    

    This will take about 20 minutes to release resources

  2. offline cleanup

    cd /home/ec2-user/environment/recommender-system-dev-workshop-code/scripts
    nohup ./setup-rs-system.sh clean-offline >> ~/nohup.log 2>&1 &
    tail -f ~/nohup.log
    
    After you finish the above steps, the online and offline parts of the recommendation system have been cleaned. If you want to completely empty all resources, you need to perform the following steps: 
    
  3. Go to IAM Role Console, select the role beginning with gcr-rs-dev-workshop-ec2 and delete it.

GCR RS DEV

  1. In the Cloudformation Console, delete below stacks:

    • gcr-rs-dev-workshop-ec2
    • rs-dev-workshop-codebuild-role-stack
    • rs-personalize-role-stack
  2. Go to EC2 Key Pairs, select gcr-rs-dev-workshop-key, and delete it.

  3. Suppose you are using Mac, go to your local disk which saves the key, eg: ~/Downloads

    cd ~/Downloads
    rm -f gcr-rs-dev-workshop-ec2-key.pem