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:
name: aws-rds-postgres
description: PostgreSQL database on AWS RDS
version: 1.2.3
- It must match
MAJOR.MINOR.PATCH, such as1.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.0can be republished any number of times, so a team can iterate before its first release.
Publishing​
Create the bundle's repository once, then publish:
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.
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.20260101T000000Zcomes before1.2.0. - Development releases of the same version sort by timestamp.
- Only instances on a
+devrelease 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.
# 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.
| Channel | Resolves to | Deploys automatically on |
|---|---|---|
~1 | The newest 1.x.x. Never 2.0.0. | New minor and patch releases of 1 |
~1.1 | The newest 1.1.x. Never 1.2.0. | New patch releases of 1.1 |
latest | The 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​
| Instance | Moves to the new version | Deploys it |
|---|---|---|
| Deployed, including one whose latest deploy or decommission failed | Yes | Yes |
| Never deployed, or its first deploy failed | Yes | No |
| Decommissioned | Yes | No |
| Decommission running, pending, or waiting for approval | Yes | No |
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, andlatest. - 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​
- Set
versioninmassdriver.yaml. - Optionally publish development releases (
-d) and test them on+devinstances. - Publish the stable release.
- Set each instance's
versionto an exact version, a release channel, or a development channel. - The instance deploys the release its
versionresolves to.
Instance Version Fields​
| Field | Description |
|---|---|
version | The version constraint, such as 1.2.3, ~1.2, latest, or ~1.2+dev. |
resolvedVersion | The version the next deployment uses. |
deployedVersion | The version of the last successful deployment. Null when the instance was never deployed or is decommissioned. |
availableUpgrade | The newest version that satisfies version and is newer than the current one. Null when there is none. |
releaseStrategy | Deprecated. Derived from version: a +dev channel means development. |