terraform-provider-databricks

command module
v0.1.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License: MPL-2.0 Imports: 2 Imported by: 0

README

Terraform Provider for Databricks

Requirements

Usage

provider "databricks" {
  host  = var.databricks_host
  token = var.databricks_token
}

resource "databricks_cluster" "example" {
  cluster_name  = "example"
  spark_version = "6.3.x-scala2.11"
  node_type_id  = "Standard_DS3_v2"

  autoscale {
    min_workers = 2
    max_workers = 8
  }

  autotermination_minutes = 120
}

Contributing

To build the provider:

$ go build

To test the provider:

$ go test -v ./...

To run all acceptance tests:

Note: Acceptance tests create real resources, and often cost money to run.

$ TF_ACC=1 go test -v ./...

To run a subset of acceptance tests:

$ TF_ACC=1 go test -v ./... -run=TestAccDatabricksCluster

The following environment variables must be set prior to running acceptance tests:

  • DATABRICKS_HOST
  • DATABRICKS_TOKEN

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL