Skip to main content

Versions

Bundle versions follow semantic versioning, MAJOR.MINOR.PATCH:

  • MAJOR: incompatible changes, such as a removed param.
  • MINOR: backward-compatible additions, such as a new optional param.
  • PATCH: backward-compatible fixes.

Setting the Version​

Set version in massdriver.yaml:

yaml
name: aws-rds-postgres
description: PostgreSQL database on AWS RDS
version: 1.2.3
  • It must match MAJOR.MINOR.PATCH, such as 1.2.3.
  • If it is omitted, the CLI warns and publishes 0.0.0.
  • A published version cannot be republished, except 0.0.0. 0.0.0 can be republished any number of times, so a team can iterate before its first release.

Publishing​

Create the bundle's repository once, then publish:

shell
mass bundle create aws-rds-postgres
mass bundle publish

mass bundle publish publishes the version in massdriver.yaml and fails if that version already exists.

shell
mass bundle publish --development   # or -d

A development release publishes <version>-dev.<timestamp>, such as 1.2.3-dev.20060102T150405Z. It fails if 1.2.3 is already published. Each run publishes a new development release.

Both commands print a link to the repository's page for the published version, which lists the instances that use it.

Development Releases​

  • A development release sorts before the release it is based on, so 1.2.0-dev.20260101T000000Z comes before 1.2.0.
  • Development releases of the same version sort by timestamp.
  • Only instances on a +dev release channel, or pinned to that exact version, pick up a development release.

Development releases test IaC changes against real cloud resources before a stable release. Put a set of test instances on a development channel, such as ~1.2+dev. Each mass bundle publish --development deploys to them, running the plan, compliance checks, and apply against the cloud provider's APIs.

shell
# 1. Change the IaC
vim src/main.tf

# 2. Publish a development release
mass bundle publish --development

# 3. Open the printed link and watch the test instances deploy
# 4. Repeat, or publish the stable release
mass bundle publish

The repository page (Repositories, then the bundle) has an Instances tab that lists every instance on any version of the bundle, filterable by version, and a Deployments tab with the deployments across the organization, filterable by status.

Release Channels​

An instance's version is an exact version or a release channel. When a version that matches a channel is published, every instance on that channel moves to it, and the running ones deploy it: plan, compliance checks, and apply.

ChannelResolves toDeploys automatically on
~1The newest 1.x.x. Never 2.0.0.New minor and patch releases of 1
~1.1The newest 1.1.x. Never 1.2.0.New patch releases of 1.1
latestThe highest stable version by semver, not the most recently published.Any new stable release

Add +dev to include development releases: ~1.2+dev, ~1+dev, or latest+dev. A channel without +dev resolves to stable releases only.

Use narrow channels where changes must be deliberate, such as ~2.5 in production for patches only, and wider channels in development and staging.

Which Instances Deploy​

InstanceMoves to the new versionDeploys it
Deployed, including one whose latest deploy or decommission failedYesYes
Never deployed, or its first deploy failedYesNo
DecommissionedYesNo
Decommission running, pending, or waiting for approvalYesNo

An instance that does not deploy stays on its channel. Its next deployment uses the version the channel resolves to then.

Choosing an Instance's Version​

Click an instance on the canvas and open Edit Version. The picker has two tabs:

  • Release Channels: the channels generated from published versions, such as ~0, ~0.1, and latest.
  • Versions: exact published versions.

Show development releases adds -dev.<timestamp> versions. Saving deploys the new version.

To return to an earlier version, choose it here and deploy. To repeat a past deployment exactly, with its version, params, and connections, roll back instead.

Version Lifecycle​

MASSDRIVER.YAMLversion: 1.2.0repository must existpublish -dDEVELOPMENT RELEASE1.2.0-dev.20261127T153000Zrepeat while you iteratepublishSTABLE RELEASE1.2.0immutable; no more -devbuilds of 1.2.0readyINSTANCE VERSION FIELD~1.2+dev latest+devincludes development releases1.2.0exact pin~1.2 ~1 latestnewest stable matchthe next change bumps the version in massdriver.yaml and starts overa channel instance that is deployed runs each new matching release
  1. Set version in massdriver.yaml.
  2. Optionally publish development releases (-d) and test them on +dev instances.
  3. Publish the stable release.
  4. Set each instance's version to an exact version, a release channel, or a development channel.
  5. The instance deploys the release its version resolves to.

Instance Version Fields​

FieldDescription
versionThe version constraint, such as 1.2.3, ~1.2, latest, or ~1.2+dev.
resolvedVersionThe version the next deployment uses.
deployedVersionThe version of the last successful deployment. Null when the instance was never deployed or is decommissioned.
availableUpgradeThe newest version that satisfies version and is newer than the current one. Null when there is none.
releaseStrategyDeprecated. Derived from version: a +dev channel means development.