Databricks Asset Bundle CI/CD Architect

    by Anurag Sarkar

    1

    This skill helps you create, configure, and modify databricks.yml files to manage deployments across multiple environments.

    Free

    Security scanned

    Works with the AI Agents you already use

    Databricks Asset Bundle CI/CD Architect

    Example session with this skill installed

    Create a Databricks Asset Bundle for my sales_ingestion project. I need dev, staging, and prod targets. Include an ETL job with two tasks: ingest_raw and process_silver.

    • Read your context and instructions
    • Compiled the databricks asset bundle

    I have generated a production-grade Databricks Asset Bundle configuration for the sales_ingestion project, featuring multi-environment targets and Unity Catalog-compliant job definitions.

    ParameterValueSource
    Bundle namesales_ingestionUser-specified
    Deployment targetsdev, staging, prodDefault three-target pattern
    Variable substitution syntax${var.<name>}DAB specification
    Service principal targetsstaging, prodNon-dev targets require run_as
    Data security modeSINGLE_USERUnity Catalog requirement
    Spark version15.4.x-scala2.12Latest LTS
    Dev modedevelopmentDev target only

    databricks.yml

    bundle:
      name: sales_ingestion
    
    variables:
      catalog_name:
        description: "Unity Catalog catalog name"
        default: dev_catalog
      schema_name:
        description: "Target schema name"
        default: sales_schema
    
    workspace:
      root_path: /Workspace/Users/${workspace.current_user.userName}/.bundle/${bundle.name}/${bundle.target}
    
    targets:
      dev:
        mode: development
        default: true
        workspace:
          host: https://<dev_workspace_url>.azuredatabricks.net
        variables:
          catalog_name: dev_catalog
    
      staging:
        workspace:
          host: https://<staging_workspace_url>.azuredatabricks.net
        variables:
          catalog_name: staging_catalog
        run_as:
          service_principal_name: "staging-deployer-sp"
    
      prod:
        workspace:
          host: https://<prod_workspace_url>.azuredatabricks.net
        variables:
          catalog_name: prod_catalog
        run_as:
          service_principal_name: "prod-deployer-sp"
    
    resources:
      jobs:
        sales_etl_job:
          name: "sales_etl_job_${bundle.target}"
          job_clusters:
            - job_cluster_key: sales_cluster
              new_cluster:
                spark_version: "15.4.x-scala2.12"
                node_type_id: "Standard_DS3_v2"
                num_workers: 4
                data_security_mode: "SINGLE_USER"
          tasks:
            - task_key: ingest_raw
              job_cluster_key: sales_cluster
              notebook_task:
                notebook_path: ../src/ingest_raw.py
            - task_key: process_silver
              depends_on:
                - task_key: ingest_raw
              job_cluster_key: sales_cluster
              notebook_task:
                notebook_path: ../src/process_silver.py
    

    Deployment Commands

    
    # Validate the bundle configuration (run before every deploy)
    databricks bundle validate --target dev
    
    # Deploy to the dev environment
    databricks bundle deploy --target dev
    
    # Deploy to staging
    databricks bundle deploy --target staging
    
    # Deploy to production (requires service principal authentication)
    databricks bundle deploy --target prod
    
    # Run a specific job immediately after deployment
    databricks bundle run --target dev sales_etl_job
    

    Next steps

    1. Run databricks bundle validate --target dev and confirm zero errors.
    2. Verify that run_as.service_principal_name is set on all non-dev targets.
    3. Confirm that no hardcoded catalog or schema names appear outside the variables block.
    4. Verify that mode: development appears only on the dev target.
    5. Confirm that every task specifies depends_on for execution ordering.
    databricks.yml

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Databricks Asset Bundles – CI/CD Configuration

    Simplify your Databricks deployment setup with production-ready Databricks Asset Bundle (DAB) configurations.

    This skill helps you create, configure, and modify databricks.yml files to manage deployments across multiple environments. It follows a structured approach to setting up CI/CD workflows while keeping configurations consistent, reusable, and easy to maintain.

    Key capabilities:

    • Multi-environment deployments: Configure separate development, staging, and production targets with environment-specific settings.
    • Variable management: Use variable substitution for catalog names, schemas, warehouse IDs, and storage paths instead of hardcoding environment-specific values.
    • Service principal authentication: Configure run_as blocks for staging and production deployments to ensure jobs execute under designated service principals.
    • Job configuration: Define Databricks jobs, task dependencies, schedules, job clusters, and notebook tasks.
    • Lakeflow pipeline configuration: Set up pipeline resources with catalog, schema, Photon acceleration, and environment-specific configurations.
    • Cluster configuration: Define Spark versions, node types, worker counts, and Unity Catalog-compatible security settings.
    • Deployment commands: Generate the required Databricks CLI commands to validate, deploy, and run bundles across environments.
    • Configuration validation: Follow a predefined checklist to catch configuration issues before deployment.

    Built-in safeguards:

    The skill incorporates safeguards against destructive operations, accidental PII exposure, unauthorized cross-schema access, unsafe SQL construction, and unsupported configuration properties.

    What you get:

    A complete databricks.yml configuration, a summary of deployment settings, ready-to-use Databricks CLI commands, and a post-deployment verification checklist.

    Ideal for: Data Engineers, Databricks Developers, and platform teams looking to standardize and simplify their Databricks CI/CD deployment configurations.

    Does not support legacy dbx, Terraform, or CI/CD workflow YAML. Requires Databricks CLI 0.218.0+. Only supports SINGLE_USER security mode for Unity Catalog.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Frequently Asked Questions

    This skill automates the creation of 'databricks.yml' files, ensuring your pipelines follow infrastructure-as-code best practices with environment isolation, service principal configurations, and Unity Catalog-compliant security modes.

    The skill is compatible with Databricks Runtime 15.x and Delta Lake 3.x, requiring Databricks CLI version 0.218.0 or later to execute the generated bundles.

    No, this skill focuses exclusively on the modern Databricks Asset Bundle (DAB) framework and does not support legacy dbx configurations or Terraform HCL.

    You will receive a specialized AI agent capability designed to generate production-ready YAML scaffolds, including multi-target definitions, variable substitutions, and dependency mappings.

    The skill enforces Databricks-specific syntax for variable interpolation and 'SINGLE_USER' security modes, preventing common deployment failures that generic AI models often trigger.

    New in Data & Databases

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.

    Free