Skip to content

Commit 95fc3d2

Browse files
authored
Merge pull request #248 from Greenstand/upgrade-db
docs: readme for db terraform
2 parents 493cb41 + 2adf290 commit 95fc3d2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

database/terraform/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# How to update db
2+
3+
Currently, just prod db postgresql cluster is under the control of terraform.
4+
5+
To update the Digital Ocean managed db:
6+
7+
1. Set up the token to access the DO object storage which is used as the backend for the terraform state.
8+
9+
```bash
10+
source setup_keys.sh
11+
```
12+
13+
2. Run the terraform script to update the db.
14+
15+
```bash
16+
terraform init
17+
terraform plan
18+
terraform apply
19+
```
20+
21+

0 commit comments

Comments
 (0)