Remove run-as from the built-in templates

This commit is contained in:
Lennart Kats 2024-12-22 11:02:00 +01:00
parent e0952491c9
commit f12bb0cffb
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
3 changed files with 4 additions and 10 deletions

View File

@ -11,12 +11,12 @@ include:
# The default schema, catalog, etc. for dbt are defined in dbt_profiles/profiles.yml # The default schema, catalog, etc. for dbt are defined in dbt_profiles/profiles.yml
targets: targets:
dev: dev:
default: true
# The default target uses 'mode: development' to create a development copy. # The default target uses 'mode: development' to create a development copy.
# - Deployed resources get prefixed with '[dev my_user_name]' # - Deployed resources get prefixed with '[dev my_user_name]'
# - Any job schedules and triggers are paused by default. # - Any job schedules and triggers are paused by default.
# See also https://docs.databricks.com/dev-tools/bundles/deployment-modes.html. # See also https://docs.databricks.com/dev-tools/bundles/deployment-modes.html.
mode: development mode: development
default: true
workspace: workspace:
host: {{workspace_host}} host: {{workspace_host}}
@ -24,10 +24,8 @@ targets:
mode: production mode: production
workspace: workspace:
host: {{workspace_host}} host: {{workspace_host}}
# We explicitly specify /Workspace/Users/{{user_name}} to make sure we only have a single copy. # We explicitly deploy to /Workspace/Users/{{user_name}} to make sure we only have a single copy.
root_path: /Workspace/Users/{{user_name}}/.bundle/${bundle.name}/${bundle.target} root_path: /Workspace/Users/{{user_name}}/.bundle/${bundle.name}/${bundle.target}
permissions: permissions:
- {{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}} - {{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}}
level: CAN_MANAGE level: CAN_MANAGE
run_as:
{{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}}

View File

@ -21,10 +21,8 @@ targets:
mode: production mode: production
workspace: workspace:
host: {{workspace_host}} host: {{workspace_host}}
# We explicitly specify /Workspace/Users/{{user_name}} to make sure we only have a single copy. # We explicitly deploy to /Workspace/Users/{{user_name}} to make sure we only have a single copy.
root_path: /Workspace/Users/{{user_name}}/.bundle/${bundle.name}/${bundle.target} root_path: /Workspace/Users/{{user_name}}/.bundle/${bundle.name}/${bundle.target}
permissions: permissions:
- {{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}} - {{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}}
level: CAN_MANAGE level: CAN_MANAGE
run_as:
{{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}}

View File

@ -41,7 +41,7 @@ targets:
mode: production mode: production
workspace: workspace:
host: {{workspace_host}} host: {{workspace_host}}
# We explicitly specify /Workspace/Users/{{user_name}} to make sure we only have a single copy. # We explicitly deploy to /Workspace/Users/{{user_name}} to make sure we only have a single copy.
root_path: /Workspace/Users/{{user_name}}/.bundle/${bundle.name}/${bundle.target} root_path: /Workspace/Users/{{user_name}}/.bundle/${bundle.name}/${bundle.target}
variables: variables:
warehouse_id: {{index ((regexp "[^/]+$").FindStringSubmatch .http_path) 0}} warehouse_id: {{index ((regexp "[^/]+$").FindStringSubmatch .http_path) 0}}
@ -50,5 +50,3 @@ targets:
permissions: permissions:
- {{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}} - {{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}}
level: CAN_MANAGE level: CAN_MANAGE
run_as:
{{if is_service_principal}}service_principal{{else}}user{{end}}_name: {{user_name}}