Skip to content

Commit b9413c8

Browse files
Add doc for removing SpCloud instance
1 parent 26836c6 commit b9413c8

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

sphinx/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Welcome to Specify Developer documentation!
6060
:caption: Misc:
6161

6262
misc/add_new_instance_to_specify_cloud
63+
misc/remove_instance_from_specify_cloud
6364
misc/documentation
6465
misc/kuit_notes
6566
misc/specify7_ecs_most-in-one
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Removing a Specify Cloud Instance
2+
3+
Before proceeding with the removal of a Specify Cloud instance, it is crucial to **contact the institution** to ensure they are aware that they have either halted payment to the consortium or that they have switched to self-hosting. We must not destroy or remove any data without providing them a copy.
4+
5+
Membership staff should be involved before proceeding.
6+
7+
## Steps to Remove a Specify Cloud Instance
8+
9+
1. **Remove from Updown.io**
10+
- Log in to the Specify [Updown.io](https://updown.io/) account.
11+
- Locate the instance you wish to remove (e.g., `fishmuseum.specifycloud.org`).
12+
- Select the instance and click on the option to remove or delete it from your monitoring list. If this is not done before the following steps, we will be notified as if a server went offline.
13+
14+
3. **Remove from `spcloudservers.json`**
15+
- Access the appropriate Specify Cloud server via SSH.
16+
- Navigate to the `/home/ubuntu/docker-compositions/specifycloud` directory (should be there automatically).
17+
- Navigate to the directory: `/home/ubuntu/docker-compositions/specifycloud`.
18+
- Open the `spcloudservers.json` file in `nano` (or `vim` if you are an expert command line user).
19+
- Remove the entry corresponding to your Specify Cloud instance and save the changes.
20+
21+
4. **Run `make`**
22+
- Execute the command:
23+
```bash
24+
make
25+
```
26+
- This will rebuild the necessary configuration files (`docker-compose.yml` and associated resources) without the removed instance as to not accidentally recreate it when building the containers again.
27+
28+
5. **Stop Docker Containers**
29+
- Identify the names of the Docker containers for the main `specify7` app and the worker.
30+
- Run the following commands to stop the containers:
31+
```bash
32+
docker stop <name_of_specify7_container>
33+
docker stop <name_of_worker_container>
34+
```
35+
- Replace `<name_of_specify7_container>` and `<name_of_worker_container>` with the actual container names.
36+
37+
2. **Delete CNAME Record in DreamHost**
38+
- Log in to our DreamHost account.
39+
- Navigate to the **Websites** section and select **Manage Domains**.
40+
- Find the domain associated with your Specify Cloud instance (by default, we use `specifycloud.org`, [link here](https://panel.dreamhost.com/index.cgi?tree=domain.dashboard#/site/specifycloud.org/dns).
41+
- Click on **Edit** next to the domain and remove the CNAME record (`fishmuseum.specifycloud.org`) for the deployment.
42+
43+
6. **Backup the Database from RDS**
44+
- Access your AWS RDS console.
45+
- Locate the database associated with the Specify Cloud instance you are removing (usually the same as the subdomain, with `-` replaced with `_` if included).
46+
- Create a manual snapshot or export the database to ensure you have a backup before deletion.
47+
48+
7. **Remove the Database from the Server**
49+
- After backing up the database, proceed to remove it from the server.
50+
- Ensure that you store the backup safely in the SCC Vault Google Drive under the corresponding member directory for future reference.
51+
52+
8. **Share the Database with the user**
53+
- Message the point of contact for the insitutiton offering to share the database using any method convenient for them.

0 commit comments

Comments
 (0)