Skip to content

Request: format lookup value before attempting lookup #1259

@kenmyers-8451

Description

@kenmyers-8451

Describe the issue

I'd like it if lookup values could be formatted before before being looked up. For example:

variables:
  service_principal_app_id:
    description: 'The app id of the service principal for running workflows as.'
    default: ""
    lookup:
      service_principal: "spTm3cmauto${bundle.environment}"

In our case, the service principal name changes depending on what environment it's associated with.

Configuration

See above example

Steps to reproduce the behavior

  1. Add a lookup like above example
  2. databricks bundle validate -t dev (target is dev, this is also bundle environment)

Expected Behavior

In my example, lookup value should format to spTm3cmautodev

Actual Behavior

Instead it returns the error

Error: failed to resolve service-principal: spTm3cmauto${bundle.environment}, err: ServicePrincipal named 'spTm3cmauto${bundle.environment}' does not exist

OS and CLI version

v0.215.0, macos 14.3.1

Is this a regression?

N/A

Debug Logs

The issue should be self evident but I can provide these if necessary

Metadata

Metadata

Assignees

Labels

DABsDABs related issuesEnhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions