зеркало из
1
0
Форкнуть 0
SWIMDataIngestion/Infrastructure/terraform-databricks
Marcelo Zambrana Villarroel 9a1f0627ec Updating terraform providers, adding support and samples for TBFM and STDDS, improved documentation and more tests 2023-09-25 13:57:52 +00:00
..
.gitignore Initial commit 2022-03-18 21:57:23 +00:00
.terraform.lock.hcl Updating terraform providers, adding support and samples for TBFM and STDDS, improved documentation and more tests 2023-09-25 13:57:52 +00:00
.tflint.hcl Initial commit 2022-03-18 21:57:23 +00:00
LICENSE Initial commit 2022-03-18 21:57:23 +00:00
README.md Updating terraform providers, adding support and samples for TBFM and STDDS, improved documentation and more tests 2023-09-25 13:57:52 +00:00
clusters.tf Initial commit 2022-03-18 21:57:23 +00:00
main.tf Updating terraform providers, adding support and samples for TBFM and STDDS, improved documentation and more tests 2023-09-25 13:57:52 +00:00
notebooks.tf Updating terraform providers, adding support and samples for TBFM and STDDS, improved documentation and more tests 2023-09-25 13:57:52 +00:00
outputs.tf Initial commit 2022-03-18 21:57:23 +00:00
variables.tf Initial commit 2022-03-18 21:57:23 +00:00

README.md

Automating Data Analytics Environments

It creates the following resources:

  • A DataBricks Cluster.
  • A starter Notebook with initial python code to connect to Kafka.

Project Structure

This project has the following files which make them easy to reuse, add or remove.

.
├── LICENSE
├── README.md
├── clusters.tf
├── main.tf
├── notebooks.tf
├── outputs.tf
└── variables.tf

Most common parameters are exposed as variables in variables.tf

Pre-requisites

It is assumed that you have azure CLI and Terraform installed and configured. More information on this topic here. I recommend using a Service Principal with a certificate.

versions

This terraform script has been tested using the following versions:

  • Terraform =>1.5.7
  • Azure provider 3.74.0
  • Databricks provider 1.26.0
  • Azure CLI 2.52.0

Usage

Just run these commands to initialize terraform, get a plan and approve it to apply it.

terraform fmt
terraform init
terraform validate
terraform plan
terraform apply

I also recommend using a remote state instead of a local one. You can change this configuration in main.tf You can create a free Terraform Cloud account here.

Clean resources

It will destroy everything that was created.

terraform destroy --auto-approve

Caution

Be aware that by running this script your account will get billed.

Authors

  • Marcelo Zambrana