Use oef_test db for AWS load testing

This commit is contained in:
Andrea Fazzi 2020-02-21 17:29:37 +01:00
parent 86dc90bc15
commit 359f2957c1
3 changed files with 11 additions and 5 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
RDSHOST="oef-free-tier.cjsemjfwbreb.eu-central-1.rds.amazonaws.com"
TOKEN="$(aws rds generate-db-auth-token --hostname $RDSHOST --port 3306 --region eu-central-1 --username admin)"
echo $TOKEN
mysql --host=$RDSHOST --port=3306 --ssl-ca=/sample_dir/rds-combined-ca-bundle.pem --enable-cleartext-plugin --user=admin --password=$TOKEN
RDSHOST="oef-micro.cjsemjfwbreb.eu-central-1.rds.amazonaws.com"
echo -n Password:
read -s password
mysql --host=$RDSHOST --port=3306 --user=admin --password=$password

6
bash/rds-import.bash Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
RDSHOST="oef-micro.cjsemjfwbreb.eu-central-1.rds.amazonaws.com"
echo -n Password:
read -s password
mysql --host=$RDSHOST --port=3306 --user=admin --password=$password $1 < $2

View file

@ -9,7 +9,7 @@ keys:
jwt_signing_key: "ytOC>3,"
orm:
connection: "admin:remaccio1607@tcp(oef-micro.cjsemjfwbreb.eu-central-1.rds.amazonaws.com:3306)/oef_prod"
connection: "admin:remaccio1607@tcp(oef-micro.cjsemjfwbreb.eu-central-1.rds.amazonaws.com:3306)/oef_test"
options: "charset=utf8&parseTime=True&loc=Local"
automigrate: true
reset: false