rh.

What it is

CDS is a compiler and CLI for declarative data stacks. You describe the stack in YAML. CDS validates it, resolves the couplings and renders a single Docker Compose model from it, or a Helm chart with --target helm. CDS does not run containers itself. For cds up it calls the real docker compose.

Building blocks

A module never knows the service name of another module. A provider offers a named contract. The consumer links it via mappedFrom, and the profile fixes the binding with contractRef: <module-id>.<contract>. That way you can swap Postgres for another warehouse without touching the rest.

The compile pipeline

  1. Validate: checks the shape of profile and modules, module paths, the dependency graph, secrets and contract compatibility.
  2. Plan: applies schema defaults and resolves contracts into a cds/v1alpha1 Plan.
  3. Render: expands ${config.*}, ${bindings.*} and ${service.host} and produces one Compose model (or a Helm chart with --target helm).

Errors come back as structured diagnostics with a stable code, a message and an exact data path. When errors occur, CDS stops before the next step.

Security

Quick start

Adding your own module

  1. Create modules/<category>/<name>/module.yaml with apiVersion: cds/v1alpha1 and kind: Module.
  2. Define the configSchema with defaults and the provides/consumes contracts.
  3. Write the Compose template under spec.implementation.
  4. Reference it from a profile and run cds validate.

Why this works for you

Also explained for

Back to Composable Data Stack (CDS) · Source code on GitHub · Contact · Nederlands