feat: parameterize deployed resource names with name_prefix - #90
Merged
Conversation
…riable
Add a name_prefix variable to databricks.yml so each deployer gets unique
resource names and avoids collisions in shared workspaces. The app, database
instance, and volume name fields now use ${var.name_prefix}. The initial-setup
skill gains a Personalization phase that auto-detects the user and writes a
local .databricks/bundle/dev.yml override. deploy.sh resolves the app name
dynamically from the bundle.
Closes #89
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #89
name_prefixbundle variable todatabricks.yml(default:"claw") so each deployer gets unique resource names in shared workspacesnamefield of the app (${var.name_prefix}-claw), database instance (${var.name_prefix}-claw-db), and volume (${var.name_prefix}_claw_memory) resources.databricks/to.gitignorefor local bundle overridesscripts/deploy.shto resolve the app name dynamically from the bundle instead of hardcodingclaw-appinitial-setupskill that auto-detects the user, checks for collisions, and writes.databricks/bundle/dev.yml--var name_prefix=<value>override inapp.example.yml.databricks/in.gitignoreTest plan
claw) and verify resource names:claw-claw,claw-claw-db,claw_claw_memory--var name_prefix=tanner) and verify:tanner-claw,tanner-claw-db,tanner_claw_memory/initial-setupand verify Phase 2 writes.databricks/bundle/dev.ymlcorrectlyscripts/deploy.sh app-deployandstopresolve the app name dynamically