diff --git a/dataeng/resources/snowflake-user-retirement-status-cleanup.sh b/dataeng/resources/snowflake-user-retirement-status-cleanup.sh index b4507b93e..9e535703c 100644 --- a/dataeng/resources/snowflake-user-retirement-status-cleanup.sh +++ b/dataeng/resources/snowflake-user-retirement-status-cleanup.sh @@ -10,13 +10,14 @@ source "${PYTHON_VENV}/bin/activate" cd $WORKSPACE/analytics-tools/snowflake make requirements -source secrets-manager.sh analytics-secure/job-configs/SNOWFLAKE_USER_RETIREMENT_STATUS_CLEANUP_JOB_EXTRA_VARS KEY_PATH -source secrets-manager.sh analytics-secure/job-configs/SNOWFLAKE_USER_RETIREMENT_STATUS_CLEANUP_JOB_EXTRA_VARS PASSPHRASE_PATH -source secrets-manager.sh analytics-secure/job-configs/SNOWFLAKE_USER_RETIREMENT_STATUS_CLEANUP_JOB_EXTRA_VARS USER -source secrets-manager.sh analytics-secure/job-configs/SNOWFLAKE_USER_RETIREMENT_STATUS_CLEANUP_JOB_EXTRA_VARS ACCOUNT +python3 secrets-manager.py -w -n analytics-secure/snowflake/rsa_key_stitch_loader.p8 -v rsa_key_stitch_loader +python3 secrets-manager.py -w -n analytics-secure/snowflake/rsa_key_passphrase_stitch_loader -v rsa_key_passphrase_stitch_loader python retirement_cleanup.py \ - --key_path $WORKSPACE/analytics-secure/$KEY_PATH \ - --passphrase_path $WORKSPACE/analytics-secure/$PASSPHRASE_PATH \ --user $USER \ - --account $ACCOUNT + --account $ACCOUNT \ + --key_file rsa_key_stitch_loader \ + --passphrase_file rsa_key_passphrase_stitch_loader + +rm rsa_key_stitch_loader +rm rsa_key_passphrase_stitch_loader