Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 08:51 AM
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!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 10:46 AM - edited 09-26-2024 10:46 AM
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