cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with host url parameterization

jasont41
New Contributor II

I am attempting to parameterize a databricks yaml so I can deploy it to multiple databricks accounts via Gitlab CICD, and have ran into a snag when parameterizing the workpace host value. 

My variable block looks like this: 

variables:
    databricks_host:
        description: Databricks host URL
        default: <my_url>
 
And I reference the variable like so: 
 
workspace:
    host: ${var.databricks_host}
 
I set the variable with 
BUNDLE_VAR_databricks_host: <url> 
in the Gitlab CI pipeline. I have verified that this pattern works with other variables, it is just this variable reference that won't resolve. 
 
This is the error I get: 
Error: failed during request visitor: parse "https://${var.databricks_host}": invalid character "{" in host name
53Name: <workflow_name>
54Target: dev
55Workspace:
56 Host: ${var.databricks_host}
57Found 1 error
 
I am beginning to think that this particular value cannot be assigned with a variable, but I haven't found anything in the documentation to backup that assumption. Any help would be greatly appreciated! 
1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Esteemed Contributor III

Hi @jasont41 ,

Your assumption is correct. You can't use variable for host mapping. You can find information about it in the following documentation entry:

 

https://docs.databricks.com/en/dev-tools/bundles/settings.html#other-workspace-mappings

View solution in original post

1 REPLY 1

szymon_dybczak
Esteemed Contributor III

Hi @jasont41 ,

Your assumption is correct. You can't use variable for host mapping. You can find information about it in the following documentation entry:

 

https://docs.databricks.com/en/dev-tools/bundles/settings.html#other-workspace-mappings

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now