# This is a Databricks asset bundle definition for my_default_python.
# See https://docs.databricks.com/dev-tools/bundles/index.html for documentation.
bundle:
  name: my_default_python
  uuid: <UUID>

include:
  - resources/*.yml

targets:
  dev:
    # The default target uses 'mode: development' to create a development copy.
    # - Deployed resources get prefixed with '[dev my_user_name]'
    # - Any job schedules and triggers are paused by default.
    # See also https://docs.databricks.com/dev-tools/bundles/deployment-modes.html.
    mode: development
    default: true
    workspace:
      host: $DATABRICKS_URL

  prod:
    mode: production
    workspace:
      host: $DATABRICKS_URL
      # We explicitly specify /Workspace/Users/$USERNAME to make sure we only have a single copy.
      root_path: /Workspace/Users/$USERNAME/.bundle/${bundle.name}/${bundle.target}
    permissions:
      - user_name: $USERNAME
        level: CAN_MANAGE
    run_as:
      user_name: $USERNAME
