I'm trying to set the global init script via my Terraform deployment. I did a thorough google search and can't seem to find guidance here.
I'm using a very generic call to set these scripts in my TF Deployment.
terraform {
required_providers {
databricks = {
source = "databricks/databricks"
}
}
}
provider "databricks" {
profile = var.databricks_profile
alias = "databricks_provider"
host = var.databricks_workspace_url
token = var.databricks_workspace_token
}
resource "databricks_global_init_script" "init_script" {
source = "${path.module}/databricks_init_scripts.sh"
name = "mdp_init_script"
enabled = true
}
The bash script file databricks_global_init_script.sh is basically empty. I put "apt-get update". I don't believe the script is even being called.
The DB Workspace has a personal access token setup.
Full error message
│ Error: cannot create global init script: default auth: cannot configure default credentials
│
│ with module.databricks_cluster_setup.databricks_global_init_script.init_script,
│ on ../modules/core-databricks/main.tf line 41, in resource "databricks_global_init_script" "init_script":
│ 41: resource "databricks_global_init_script" "init_script" {