Skip to content

Latest commit

 

History

History
100 lines (83 loc) · 2.04 KB

dbk_instance_pools.md

File metadata and controls

100 lines (83 loc) · 2.04 KB

dbk_instance_pools

dbk_instance_pools(name, configure, template, substitutions)

For example, if the BUILD file contains:

dbk_instance_pools(
  name = "pools"
  configure = ":cfg",
  template = ":example.json",
  substitutions = {},
)
Attributes
name Name, required

A unique name for this rule.

configure Label, required

Label of dbk_configure target.

Specify the databricks cluster settings.

configure = ":cfg"

template json file; required

File containing JSON request to POST to /api/2.0/cluster-pools/create

substitutions

string_dict, optional

Substitutions to make when expanding the template.

Usage

The dbk_instance_pools rules expose a collection of actions. We will follow the :pools target from the example above.

Resolve

You can "resolve" your template by running:

bazel run :pools.resolve

The resolved template will be printed to STDOUT.

Get

Users can get the instance pool configuration by running

bazel run :pools.get

The result will be printed to STDOUT.

Create or Edit

Users can create or edit the instance pool configuration by running:

bazel run :pools.create

Delete

Users can delete the instance pool configuration by running:

bazel run :pools.delete