-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabricks.yml
54 lines (44 loc) · 1.8 KB
/
databricks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This is a Databricks asset bundle definition for example_python.
# See https://docs.databricks.com/dev-tools/bundles/index.html for documentation.
bundle:
name: example
workspace:
host: https://e2-demo-field-eng.cloud.databricks.com/
artifacts:
default:
type: whl
build: poetry build
include:
- example/resources/*.yml
targets:
# The 'dev' target, used for development purposes.
# Whenever a developer deploys using 'dev', they get their own copy.
dev:
# We use 'mode: development' to make sure everything deployed to this target gets a prefix
# like '[dev my_user_name]'. Setting this mode also disables any schedules and
# automatic triggers for jobs and enables the 'development' mode for Delta Live Tables pipelines.
mode: development
default: true
workspace:
host: https://e2-demo-field-eng.cloud.databricks.com/
# Optionally, there could be a 'staging' target here.
# (See Databricks docs on CI/CD at https://docs.databricks.com/dev-tools/bundles/index.html.)
#
# staging:
# workspace:
# host: https://<your workspace host url>
# The 'prod' target, used for production deployment.
prod:
# For production deployments, we only have a single copy, so we override the
# workspace.root_path default of
# /Users/${workspace.current_user.userName}/.bundle/${bundle.target}/${bundle.name}
# to a path that is not specific to the current user.
mode: production
workspace:
host: https://e2-demo-field-eng.cloud.databricks.com/
root_path: /Shared/.bundle/prod/${bundle.name}
run_as:
# This runs as [email protected] in production. Alternatively,
# a service principal could be used here using service_principal_name
# (see Databricks documentation).
user_name: [email protected]