Files

2.3 KiB

page_title, subcategory, description
page_title subcategory description
kms_integration_databricks Resource - terraform-provider Native Integrations - DEPRECATED Deprecated: This resource is deprecated and will be removed in a future version. Use kms_secret_sync_databricks instead. Create Databricks integration & save to Hanzo KMS. Only Machine Identity authentication is supported for this resource.

kms_integration_databricks (Resource)

Deprecated: This resource is deprecated and will be removed in a future version. Use kms_secret_sync_databricks instead.

Create Databricks integration & save to Hanzo KMS. Only Machine Identity authentication is supported for this resource.

Example Usage

terraform {
  required_providers {
    kms = {
      # version = <latest version>
      source = "hanzokms/kms"
    }
  }
}

provider "kms" {
  host = "https://kms.hanzo.ai" # Only required if using self hosted instance of Hanzo KMS, default is https://kms.hanzo.ai
  auth = {
    universal = {
      client_id     = "<machine-identity-client-id>"
      client_secret = "<machine-identity-client-secret>"
    }
  }
}

resource "kms_integration_databricks" "db-integration" {
  project_id  = "<project-id>"
  environment = "<env-slug>"

  databricks_host         = "<databricks-host>" # Example: https://afc-2a42f142-bb11.cloud.databricks.com
  databricks_token        = "<databricks-personal-access-token>"
  databricks_secret_scope = "<databricks-secret-scope>"

  secret_path = "/some/kms/folder" # "/" is the root folder 

}

Schema

Required

  • databricks_host (String) The Databricks host URL.
  • databricks_secret_scope (String) The Databricks secret scope. Example: your-secret-scope
  • databricks_token (String, Sensitive) The Databricks access token.
  • environment (String) The slug of the environment to sync to Databricks (prod, dev, staging, etc).
  • project_id (String) The ID of your Hanzo KMS project.
  • secret_path (String) The secret path in Hanzo KMS to sync secrets from.

Read-Only

  • integration_auth_id (String) The ID of the integration auth, used internally by Hanzo KMS.
  • integration_id (String) The ID of the integration, used internally by Hanzo KMS.