Skip to main content

Dependencies & Resources

Bundles compose through typed, versioned contracts.

  • Resources are what a bundle produces for other bundles: database credentials, cluster access, network layouts. A bundle declares them under resources: in massdriver.yaml.
  • Dependencies are the resources a bundle consumes. A bundle declares them under dependencies:.
  • Resource types are the versioned JSON Schemas that both sides agree on.

A link between two components on the project blueprint fills one bundle's dependency with another bundle's resource. In each environment, the link becomes a connection between the two instances. A dependency can also be filled by an environment default or a remote reference.

Checks​

  • A link can only join a resource and a dependency of the same resource type.
  • A resource's payload must validate against its resource type's schema when the bundle publishes it.
  • A link records the version range of the bundle at each end, so one blueprint can serve environments that run different bundle versions.
  • At deploy time, the resource filling each dependency must have a version that the dependency's range accepts. See Version Resolution.

Pages​