Run Harebell · Day to day

Uninstall Harebell

You can remove Harebell from your cloud account at any time, and it takes a few clicks and a wait. This page explains the order to do things in, what Harebell deletes, what it leaves for you, and what to do when something gets in the way. Read it before you start, because there is one ordering rule that is easy to break and awkward to repair.

Careful

Never delete Harebell's stacks in the AWS console, and never delete the harebell stack first. Use Uninstall in Harebell, and delete the harebell stack last, when Harebell tells you to.

Why the order matters#

Harebell's work in your account is done through a role that lives in the harebell stack, the first one you created. Uninstall is Harebell removing its own work, so it needs that role to the end. If you delete the harebell stack first, the role disappears, Harebell can no longer reach your account, and the rest of its work in your account is left for you to remove by hand. Deleting the other stacks by hand is a problem of a different kind: Harebell keeps records of what it made, and removing parts behind its back leaves those records out of step with the account. Harebell can recover from most of this, which is covered below, but it is much easier not to need to.

So the order is fixed. Harebell removes everything it made, and you remove the harebell stack last, which takes away Harebell's access to your account and ends the install.

Steps#

0 of 6 done
  1. 1

    Warn the people who use your apps#

    Uninstall removes every app, job and agent Harebell runs in the account, along with their web addresses, which stop working. Tell your builders and their users first. If anyone needs to keep a file or a database, they should copy it out now. The next steps show exactly what is kept and what is deleted.

  2. 2

    Open the Cloud account page#

    Sign in as an admin and open Settings, then Cloud account. At the bottom, a card titled Uninstall Harebell lists what the uninstall removes, what stays in your account, and what you do afterwards. The list names each app's database and files, so you can see what is at stake. The button is disabled until the page has finished reading what is in the account, so that the list is complete before you decide.

  3. 3

    Press Uninstall and confirm#

    Press Uninstall, then confirm with Yes, uninstall. Only admins can do this. For an account that Harebell never set up, the button reads Remove this account instead, and it just forgets the account.

  4. 4

    Let Harebell work#

    Harebell first waits for builds and releases that are already under way to finish, for up to two hours, and refuses new ones. Then it removes its work in the reverse of the order it built it:

    1. It removes the DNS delegation that points your apps' domain at your account, which needs nothing from your account.
    2. It deletes the Slack apps it created for your agents, then each app's stack, with the stacks for the databases, buckets and queues made for it.
    3. It empties the sources bucket, where builders' code was uploaded, and deletes harebell-base, the stack with the network, load balancer, front door and gateway.
    4. It clears the domain's certificate records and deletes harebell-zone.

    The card shows the step it is on. You can leave the page.

  5. 5

    Delete the harebell stack last#

    When Harebell finishes, the page shows a card titled Finish removing Harebell. Press Open the stack in the cloud console, which opens CloudFormation in your account's region, and delete the stack called harebell. That removes Harebell's role and with it Harebell's last way into your account. Harebell cannot do this for you, by design.

  6. 6

    Clean up what stays#

    Harebell leaves a few things for you to decide about.

    • A last copy of each database and each app's uploaded files. Harebell cannot delete these once it is gone, because they hold your data. The Finish removing Harebell card names them. Delete them when you no longer need them.
    • The audit trail: the harebell-audit-<account>-<region> bucket and the /harebell/audit log group. They are yours. If you ever install Harebell in this account again, it writes to the same record. See The audit trail.

If something stops the uninstall#

An uninstall that fails stays in the uninstalling state, with the reason on the Cloud account page, and a Try again button. Fix what the reason says, such as a CloudFormation stack that would not delete, and press it. Harebell carries on from where it stopped.

If the account refuses Harebell's role, for example because the harebell stack was deleted too early or the account was closed, the card offers two choices. If Harebell's access should still be there, check the harebell stack in CloudFormation and press Try uninstalling again. If the account is closed, or you removed Harebell's access on purpose, press Finish without the account. Harebell then forgets the account, your apps' web addresses stop working, and you can add the account or another one again. Whatever it had made in the account stays there, and the card lists it, along with any Slack apps for agents, which you then delete on api.slack.com/apps. Delete the leftover Harebell stacks in the order the card gives: apps and their resources, then harebell-base, then harebell-zone, then harebell.

After you are done#

The account can be added to Harebell again whenever you like. If you do, the audit trail carries on in the same bucket.