szymon_dybczak
Esteemed Contributor III

Hi @prakharsachan ,

In Declarative Automation Bundles YAML (formerly known as Databricks Assets Bundles) you can only define secret scopes:

szymon_dybczak_0-1776102462918.png

If you want to read secrets from secret scope you can use dbutils in python script:

password = dbutils.secrets.get(scope = "<scope-name>", key = "<key-name>")

If you're talking more about devops pipeline you can also use databricks cli to read secret in following way:

databricks secrets get-secret <scope-name> <key-name> | jq -r .value | base64 --decode

 

More information you can find below:

Secret management | Databricks on AWS

View solution in original post