Cleanup Resources

Cleaning up resources

In order to prevent charges to your account we recommend cleaning up the infrastructure that was created during this workshop. If you plan to keep things running so you can examine the workshop later, remember to do the cleanup when you are done.

Please note that you will need to manually delete some resources before you delete the CloudFormation stacks, so please do the following steps in order.

  1. Disable termination protection for the applicable EC2 instances.

    • Open the EC2 console.
    • Select the instance.
    • Click on Actions, Instance settings, change termination protection.

    CleanUp

    • Uncheck the Enable checkbox, click Save.

    CleanUp

  2. Delete the Cloudformation stack.

    • Go to the AWS CloudFormation console.
    • Select the appropiate stack (remember that depending on the automated responses deployed you might have 2 stacks and 1 nested stack).
    • Click Delete.

    CleanUp

Make sure the Stack delete status is DELETE_COMPLETE, this could take a while.

  1. Check if Amazon GuardDuty was disabled automatically or you need to disable it manually.

    • Go to the GuardDuty console.
    • Click on Settings (on the left panel menu).
    • Scroll down.
    • Click Disable GuardDuty.

    CleanUp

Disabling GuardDuty will remove its data.

  1. Verify and delete any remaining EC2 snapshots generated.