Understand DataOS Resources
Understand what DataOS Resources are, how they are structured, and how to deploy and manage them.
DataOS Resources are the declarative building blocks you use to bring a Data Product to life. Instead of managing raw infrastructure, you describe the desired state in a YAML configuration file. DataOS handles provisioning, reconciliation, and lifecycle management automatically.
Think of Resources the same way you think about your Data Product: declare what you need, version it in source control, and let the platform ensure it stays in that state.
Key characteristics
Declarative
You describe the desired state. DataOS handles the implementation.
Version-controlled
Resources use semantic versioning (v2alpha, v1, etc.) and are tracked in git.
Lifecycle-managed
Resources move through states: creating → active → deleted.
Relationship-aware
Resources can depend on and reference other resources.
Runnable or non-runnable
Some resources execute code and have runtime state. Others are configuration-only definitions.
Runnable vs. non-runnable resources
Some resources execute code; others only hold configuration. This one split decides whether a resource has logs and runtime state to inspect, so it is worth settling before you go looking for either.
Runnable resources execute code, have runtime state, and support logs:
Non-runnable resources are configuration-only. They do not have runtime state, logs, or runtime information:
To check the runnable status of all resource types in your environment:
The test: if you would ever ask "what are its logs?", the resource is runnable. If it only describes a connection, a credential, or a capacity profile, it is not, and the log and runtime commands below will not apply to it.
Resource configuration
Every resource is defined by a YAML file that declares its desired state. The platform continuously reconciles the actual state with what you have declared.
Required fields
These fields are mandatory for all resource types:
name
string
Unique identifier for the resource.
version
string
API version. Use v2alpha for all current resources.
type
string
Resource type: workflow, service, worker, nilus, app, link, depot, secret, compute, dataplane, volume, bundle.
owner
string
Owner identifier. Auto-populated from the authenticated user if not provided.
spec
mapping
Resource-specific configuration. Structure varies by type.
Optional metadata fields
description
string
Human-readable description. Recommended for all resources.
tags
sequence
Labels for grouping, filtering, and discovery.
title
string
Display title used in the UI.
layer
string
Resource layer: user or system. Used for access control.
Naming rules
Naming rules vary by resource type:
Depot
Alphanumeric only (a-z, A-Z, 0-9)
63
All others
Alphanumeric, dots, underscores, hyphens
253
Example resource structure
Organizing resources with tags
Tags make resources discoverable and filterable across teams, domains, and environments. A single resource can carry tags across multiple dimensions simultaneously.
Recommended tag dimensions
domain
sales, finance, operations, marketing
team
data-engineering, analytics, platform
environment
dev, staging, prod
owner
Username or team handle
project
Product name or initiative
Resource lifecycle
Resources move through predictable states managed by the platform:
creating
Resource has been submitted and is being provisioned.
active
Resource is deployed and available.
failed
Provisioning or reconciliation encountered an error.
deleted
Resource has been removed. Redeploy with apply if needed.
When you update a resource by re-applying its YAML, the platform performs a rolling update. The new version must be healthy before the old version is removed. Both versions are retained for audit purposes.
Managing resources with the CLI
Use the DataOS CLI to apply, inspect, delete, and debug resources from the terminal.
Deploy or update
Validate before deploying
Always lint before applying. For deeper errors, check the logs of the failed resource instance.
Inspect a resource
View logs (runnable resources only)
Log level (INFO, DEBUG) is set in the resource's config file.
View runtime state (runnable resources only)
Remove a resource
Deletion is permanent. The platform checks for dependents before removing the resource to prevent breaking other resources that reference it.
Dynamic configuration with Projections
The Projections system lets you inject runtime values: secrets, environment-specific variables, and platform metadata: into resource definitions at deploy time. Use projections to keep resource YAML files environment-agnostic and avoid hardcoding credentials or environment-specific values.
See Projections for the full reference.
Last updated
Was this helpful?