How Can we use the Matillion Snowflake Username and Password Inside a Python Script as a variable without Hardcoding it?

We have a requirement that, need to connect to Snowflake Instance from Python Script for Custom API data fetch and need to create an alchemy connection with Snowflake. Thus Snowflake Username and Password is required to perform this activity. How can we pull the snowflake username and password used in the Matillion instance within a python script without exposing as plain text?

 

We use an external password store, like AWS' Secrets Manager to store passwords. Then, we setup a python API request inside the python script to first fetch passwords from the external store, then use those passwords for whatever else the script does.