Code Monkey home page Code Monkey logo

snowflake-databricks-etl's Introduction

Secured data ingestion(ELT) from an External Snowflake Account into Azure Blob store using Azure Databricks secrets and Azure Keyvault

Use secrets to keep data secure

Sometimes accessing data requires that you authenticate to external data sources through JDBC. Instead of directly entering your credentials into a notebook, use Azure Databricks secrets to store your credentials and reference them in notebooks and jobs.

Types of secrets

There are 2 types of secrets

  • Azure KeyVault backed scopes
  • Databricks backed scopes

We would prefer using Azure Keyvault backed scopes whenever possible because it has much better security controls than Databricks backed scope which would only be for testing.

Create a Azure Keyvault backed scope

  1. Create a Azure KeyVault instance

  2. Add Contributor permission on the Azure Key Vault instance that you want to use to back the secret scope

  3. Add secrets

  4. Use the Databricks CLI databricks secrets list-scopes command to verify that the scope was created successfully.

  databricks configure --token
  Databricks Host: https://<databricksurl>.azuredatabricks.net/
  Token: <token>		
  databricks secrets list-scopes

ETL script

Create a snowflake-databricks-etl notebook in Azure Databricks

References

https://docs.databricks.com/data/data-sources/snowflake.html

snowflake-databricks-etl's People

Contributors

jyotsnaravikumar avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.