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 Specify the databricks cluster settings.
|
template |
json file; required
File containing JSON request to POST to /api/2.0/cluster-pools/create |
substitutions |
Substitutions to make when expanding the template. |
The dbk_instance_pools
rules expose a collection of actions. We will follow the :pools
target from the example above.
You can "resolve" your template
by running:
bazel run :pools.resolve
The resolved template
will be printed to STDOUT
.
Users can get the instance pool configuration by running
bazel run :pools.get
The result will be printed to STDOUT
.
Users can create or edit the instance pool configuration by running:
bazel run :pools.create
Users can delete the instance pool configuration by running:
bazel run :pools.delete