platform.engineering/databricksofficialv0.1.0stableresource

Databricks workspace resource plugin

installation
$formae plugin install databricks

Databricks Plugin for Formae

Formae plugin for managing Databricks workspace resources.

Supported Resources

Resource Type Description Async
DATABRICKS::Compute::InstancePool Instance pools No
DATABRICKS::Compute::Cluster All-purpose clusters Create/Update
DATABRICKS::Jobs::Job Workflow jobs No

Installation

make install

Configuration

Configure a Databricks target in your Forma file:

import "@formae/formae.pkl"
import "@databricks/databricks.pkl"

target: formae.Target = new formae.Target {
  label = "databricks-target"
  config = new databricks.Config {
    host = "https://your-workspace.cloud.databricks.com"
  }
}

Credentials

The plugin uses the Databricks SDK's default credential chain. Configure credentials using one of:

Databricks CLI (recommended for local dev):

export DATABRICKS_HOST="https://your-workspace.cloud.databricks.com"
databricks auth login --host "$DATABRICKS_HOST"

Environment Variables:

export DATABRICKS_HOST="https://your-workspace.cloud.databricks.com"
export DATABRICKS_TOKEN="your-pat-token"

GitHub OIDC (for CI/CD): The SDK's native github-oidc credential strategy exchanges a GitHub Actions OIDC token directly with Databricks. See .github/workflows/ci.yml for the configuration.

Examples

See the examples/ directory for usage patterns:

  • cluster-with-pool/ - Instance pool, cluster, and scheduled job
# Evaluate an example
formae eval examples/cluster-with-pool/main.pkl

# Apply resources
formae apply --mode reconcile --watch examples/cluster-with-pool/main.pkl

Development

Prerequisites

  • Go 1.25+
  • Pkl CLI 0.30+
  • Databricks credentials (for integration/conformance testing)
  • AWS credentials (Databricks compute plane runs on AWS)

Building

make build      # Build plugin binary
make test-unit  # Run unit tests
make lint       # Run linter
make install    # Build + install locally

Conformance Testing

Run the full CRUD lifecycle + discovery tests:

make conformance-test                  # Latest formae version
make conformance-test VERSION=0.80.0   # Specific version

The scripts/ci/clean-environment.sh script cleans up test resources. It runs before and after conformance tests and is idempotent.

License

This plugin is licensed under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2).

Copyright 2026 Platform Engineering Labs Inc.

type
resource
category
data
license
FSL-1.1-ALv2
originator
platform.engineering
namespace
DATABRICKS
latest
v0.1.0 · stable
platforms
repo
github.com/platform-engineering-labs/formae-plugin-databricks
versions (1)
v0.1.0stable
2026-05-27