Skip to content

Commit ad27698

Browse files
committed
Database users are now managed by Terraform.
1 parent 2c1adef commit ad27698

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

db/create.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
. .env
44

55
flyctl postgres create --name vlach-cookbook-db --region sea --initial-cluster-size 2 --vm-size shared-cpu-1x --volume-size 1
6-
flyctl postgres connect <<EOF
7-
CREATE ROLE cookbook_admin LOGIN PASSWORD '$COOKBOOK_ADMIN_PASSWORD';
8-
CREATE DATABASE cookbook OWNER cookbook_admin;
9-
CREATE DATABASE cookbook_shadow OWNER cookbook_admin;
10-
quit;
11-
EOF
6+
terraform apply

0 commit comments

Comments
 (0)