Databricks: Installation & Configuration
The Pulumi Databricks provider uses the Databricks SDK to manage and provision resources.
Installation
The Databricks provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/databricks
- Python:
pulumi-databricks
- Go:
github.com/pulumi/pulumi-databricks/sdk/go/databricks
- .NET:
Pulumi.Databricks
- Java:
com.pulumi/databricks
Configuring Credentials
Pulumi relies on the Databricks SDK to authenticate requests from your computer to Databricks. Your credentials are never sent to pulumi.com. The Pulumi Databricks Provider needs to be configured with Databricks credentials before it can be used to create resources. Once the credentials obtained, there are two ways to communicate your authorization tokens to Pulumi:
Set the environment variables
DATABRICKS_HOST
andDATABRICKS_TOKEN
:$ export DATABRICKS_HOST=XXXXXXXXXXXXXX $ export DATABRICKS_TOKEN=YYYYYYYYYYYYYY
Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:
$ pulumi config set databricks:token YYYYYYYYYYYYYY --secret $ pulumi config set databricks:host XXXXXXXXXXXXXX
Remember to pass --secret
when setting databricks:token
so that it is properly encrypted. The complete list of
configuration parameters is in the Databricks Provider README.