Skip to main content

Connections & Artifacts

Connections and artifacts enable type-safe composition of infrastructure components in Massdriver.

Key concepts​

  • Artifacts are the outputs a bundle produces (e.g., database connection details, cluster credentials)
  • Connections are the inputs a bundle consumes from other bundles' artifacts
  • Artifact Definitions are the schemas that define the contract between bundles

How it works​

When you connect bundles on the canvas, Massdriver validates that:

  1. The artifact type matches the connection's expected type
  2. The artifact data conforms to the artifact definition schema
  3. Any additional constraints (version, region) are satisfied

This validation happens at design time, preventing incompatible infrastructure from being deployed.

In this section​