Connections & Resources
Connections and resources enable type-safe composition of infrastructure components in Massdriver.
Key concepts​
- Resources are the outputs a bundle produces (e.g., database connection details, cluster credentials). Bundles declare them under the
artifacts:key inmassdriver.yaml— the YAML key retains its original name for backwards compatibility. - Connections are the inputs a bundle consumes from other bundles' resources.
- Resource Types are the schemas that define the contract between bundles.
How it works​
When you connect bundles on the canvas, Massdriver validates that:
- The resource's type matches the connection's expected type
- The resource data conforms to the resource type schema
- Any additional constraints (version, region) are satisfied
This validation happens at design time, preventing incompatible infrastructure from being deployed.
In this section​
- Resource Type Specification - Complete reference for defining resource type schemas
Related documentation​
- Concepts: Resources & Resource Types - Conceptual overview
- Bundle YAML: connections - Connection schema reference
- Bundle YAML: artifacts - Resource output reference (YAML key still named
artifacts:) - Resource Types Repository - Standard resource types (the GitHub repo URL retains the legacy name)