Skip to content

Instantly share code, notes, and snippets.

@kaxil
Created March 27, 2020 18:39
Show Gist options
  • Save kaxil/b6da4fd18724472c96a190cfa2d50fda to your computer and use it in GitHub Desktop.
Save kaxil/b6da4fd18724472c96a190cfa2d50fda to your computer and use it in GitHub Desktop.
Use Hashicorp Vault to retrieve connections in Airflow
export AIRFLOW__SECRETS__BACKEND="airflow.contrib.secrets.hashicorp_vault.VaultSecrets"
export AIRFLOW__SECRETS__BACKEND_KWARGS='{"url":"http://127.0.0.1:8200","token":"<YOUR-ROOT-TOKEN>","connections_path": "connections"}'
# Start Scheduler
airflow scheduler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment