8000 [Feature Request] DABs: Enable Variable Substitution in include Configuration · Issue #2903 · databricks/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Feature Request] DABs: Enable Variable Substitution in include Configuration #2903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mariela-igleva opened this issue May 19, 2025 · 0 comments
Labels
DABs DABs related issues

Comments

@mariela-igleva
Copy link

Describe the issue

This may not be a bug, but there is no available documentation explaining this behavior.

When using --var to set variables at deployment time, those variables are not replaced in the include configuration, preventing the resources from being deployed.

Configuration

databricks.yml:

bundle:
  name: bundle_name

variables:
  my_variable:
    description: ...

include:
  - resources/${var.my_variable}/*.yml

targets:
  dev:
    mode: production
    default: true
    workspace:
      host: <your host>
      root_path: /Workspace/Users/${workspace.current_user.userName}/.bundle/${bundle.name}/my-envs/${var.my_variable}
    run_as:
      user_name: ${workspace.current_user.userName}

Steps to reproduce the behavior

  1. Run databricks bundle deploy -t dev --var="my_variable=test_value"

Expected Behavior

When --var is set at deploy time, ${var.my_variable} should be replaced everywhere in the YAML files.

Actual Behavior

The variable substitution only occurs in the targets configuration, such as root_path, but does not apply to the include configuration.

OS and CLI version

Windows
Databricks CLI v0.250.0

@mariela-igleva mariela-igleva added the DABs DABs related issues label May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DABs DABs related issues
Projects
None yet
Development

No branches or pull requests

1 participant
0