Deploying dash with sql server connection

I am trying to deploy dash app on heroku and aws but the thing is my app data is from SQL server.How can I do this with all the credentials to my database not being expose?
Thank you for helping me out.

dang no answer for two years?

use a config.py

then import it in