File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,18 @@ echo "Snapshot Id - $SNAPSHOT_ID"
1919FILENAME=" liberator_dump_${DATE} "
2020DBNAME=" liberator"
2121
22- MYSQL_CONN_PARAMS=" --user=${MYSQL_USER} --password=${MYSQL_PASS} --host=${MYSQL_HOST} "
22+ echo " Retrieving pem file..."
23+ wget -O /tmp/rds-combined-ca-bundle.pem https://truststore.pki.rds.amazonaws.com/eu-west-2/eu-west-2-bundle.pem
2324
24- SSL_MODE=${MYSQL_SSL_MODE:- " " }
25- OTHER_FLAGS=${MYSQL_OTHER_FLAGS:- " " }
25+ MYSQL_CONN_PARAMS=" --user=${MYSQL_USER} --password=${MYSQL_PASS} --host=${MYSQL_HOST} --ssl-ca=/tmp/rds-combined-ca-bundle.pem"
2626
27- if [ -n " $SSL_MODE " ]; then
28- MYSQL_CONN_PARAMS=" $MYSQL_CONN_PARAMS --ssl-mode=$SSL_MODE "
29- echo " SSL Mode set to $SSL_MODE "
30- fi
27+ OTHER_FLAGS=${MYSQL_OTHER_FLAGS:- " " }
3128
3229if [ -n " $OTHER_FLAGS " ]; then
3330 MYSQL_CONN_PARAMS=" $MYSQL_CONN_PARAMS $OTHER_FLAGS "
3431 echo " Additional MySQL flags: $OTHER_FLAGS "
3532fi
3633
37- echo " MYSQL connection params: $MYSQL_CONN_PARAMS "
38-
3934echo " Deleting old snapshots in database..."
4035python3 delete_db_snapshots_in_db.py
4136
You can’t perform that action at this time.
0 commit comments