Tearing Down All Created AWS Resources

After your testing, you might want to terminate the cluster at a time when it is not in use.

To do this, you will need to delete the CF stack you created. There are some steps that you will need to follow to perform this action - especially if you created an Internet gateway. This must be performed in the below order, or you will get errors.

  1. Delete the clients. This must be performed before deleting the Internet gateway and the CF stack.

To delete the client, navigate to EC2 and select the instance that you want to delete, then click Instance State > Terminate Instance.

  1. Click Terminate.
  1. Delete the internet gateway. This action must be performed before deleting the CF stack.
  2. Navigate to the AWS console and search for vpc, and then click on VPC.
  1. From the left menu, click Internet gateways.
  1. Click on your Internet gateway and click Actions > Detach from VPC.
  1. Detach the internet gateway.
  1. Now that it is not attached to a VPC, you can click the Internet gateway again and click Actions > Delete Internet Gateway.
  2. Type delete to delete the gateway.
  1. Delete the CF stack.

Now that you have no client or internet gateway, you can delete the Lightbits stack. This is the only way to prevent the PoV from accruing more costs.

  1. Navigate to Cloud Formation and Stacks.
  1. Look for the root stack (not the tested ones) of the Lightbits cluster, and click Delete.
  1. Approve the deletion, which will approve deleting all of the resources that were created by that stack.
  1. Click Delete.
  2. Monitor the progress of the delete until all resources have been deleted and the stack no longer shows under Cloud Formation > Stacks.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard