Git Product home page Git Product logo

terraform-dlt-public's Introduction

Deploying Delta Live Tables Pipelines on AWS with Terraform

About The Project

This repository contains example code for deploying Databricks Delta Live Tables pipelines with Terraform.

Delta Live Tables is a framework for building reliable, maintainable, and testable data processing pipelines. You define the transformations to perform on your data, and Delta Live Tables manages task orchestration, cluster management, monitoring, data quality, and error handling.

Terraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure. The Terraform "databricks_pipeline" Resource is used to deploy Delta Live Tables.

Built With

Getting Started

Prerequisites

Installation

  1. Clone the repo
$ git clone https://github.com/husqvarnagroup/terraform-dlt-public.git
  1. Update the dev and live Terraform var-files in the config folder with your settings. The "backend-config" files contain settings for the Terraform S3 Backend and the "variables" files contain settings for the Delta Live Tables Pipeline.
  • config/dev-backend-config.tfvars
  • config/dev-variables.tfvars
  • config/live-backend-config.tfvars
  • config/live-variables.tfvars

Usage

  1. Open a terminal and ensure you are logged into the correct AWS Profile:
$ aws sso login --profile <aws_profile_name>
  1. Initialize the Terraform backend with the dev or live backend configuration file with terraform init:
$ terraform init -backend-config config/<dev-or-live>-backend-config.tfvars

If changing between dev and live configurations you must include the -reconfigure flag:

$ terraform init -reconfigure -backend-config config/<dev-or-live>-backend-config.tfvars
  1. Show the Terraform Plan with the dev or live variables file to confirm everything works:
$ terraform plan -var-file=config/<dev-or-live>-variables.tfvars
  1. After confirming everything works, apply the changes with the dev or live variables file:
$ terraform apply -var-file=config/<dev-or-live>-variables.tfvars
  1. To delete the previously deployed resources:
$ terraform destroy -var-file=config/<dev-or-live>-variables.tfvars

Delta Live Tables settings

Delta Live Tables Product Edition

Set the correct product edition based on features needed. Delta Live Tables Product Edition

Delta Live Tables Development or Production Mode

Set mode depending on environment. Delta Live Tables Development or Production mode](https://docs.microsoft.com/en-us/azure/databricks/data-engineering/delta-live-tables/delta-live-tables-concepts#--development-and-production-modes)

terraform-dlt-public's People

Contributors

bulv1ne avatar ekstromchristian avatar miles-hopper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.