dbk_instance_pools.md
November 11, 2020 ยท View on GitHub
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 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. |
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