GithubHelp home page GithubHelp logo

tf-databricks-private's Introduction

README

Commands

Shell

sed -i 's/\r$//' ./sh_scripts/*

Terraform

terraform force-unlock 1f10a15f-0d1a-3461-ca78-8235b9408f57 terraform state list terraform state show azurerm_resource_group.example

Requirements

  • Azure CLI
  • Terraform
  • Databricks CLI

Install Terraform on Ubuntu

sudo apt-get install unzip -- https://www.terraform.io/downloads.html Get version wget https://releases.hashicorp.com/terraform/1.6.6/terraform_1.6.6_linux_amd64.zip unzip terraform_1.0.7_linux_amd64.zip sudo mv terraform /usr/local/bin/

Install Github CLI on Ubuntu

VERSION=curl "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c2- wget https://github.com/cli/cli/releases/download/v${VERSION}/gh_${VERSION}_linux_amd64.tar.gz curl -sSL https://github.com/cli/cli/releases/download/v${VERSION}/gh_${VERSION}_linux_amd64.tar.gz -o gh_${VERSION}linux_amd64.tar.gz tar xvf gh${VERSION}linux_amd64.tar.gz sudo cp gh${VERSION}linux_amd64/bin/gh /usr/local/bin/ sudo cp -r gh${VERSION}_linux_amd64/share/man/man1/* /usr/share/man/man1/ rm -r gh_2.40.1_linux_amd64.tar.gz rm -r gh_2.40.1_linux_amd64

Description

  • main.tf: Entry point for the terraform deployment.
  • terraform.tfvars: Global variables. Used in every environment.
  • variables.tf: Variable declarations on a global level.
  • initiate_remote_state.azcli: Creates storage account for remote states.
  • variables/*: Environment specific variables.
  • configs/*: Environment specific configurations. Inclduing remote state server.
  • modules/*: Modules of the terraform main.tf file.

Manual setup

  • Run Bash / WSL from root: ./pwsh_scripts/1initialize_remote_state.sh
  • Run Bash / WSL from root: ./pwsh_scripts/2initialize_github_sp.sh

Next steps

  • Make diagram
  • Connect via rotating sas token to state

tf-databricks-private's People

Contributors

tneuer avatar

Watchers

 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.