Self-Update
The deployment updates itself
Section titled “The deployment updates itself”A ServerlessInbox deployment is not a snapshot of whatever was current on the day you launched it. It watches for published releases and applies them on its own. This is worth knowing up front, because discovering it later — after a version you did not install starts running — is a bad way to learn it.
The behaviour is controlled by a single CloudFormation parameter, artifactTracking, which names the level your deployment is pinned at. It follows the newest release inside that track:
pinned— nothing updates itself. The operator decides when a new version is deployed.minor— trackv{major}.{minor}. The deployment follows patch releases only inside its current minor version. This is the default.major— trackv{major}. The deployment follows new minor and patch releases within its current major version, picking up new features without breaking changes. It never crosses a major-version boundary.
Because the default is minor, a deployment you launch today and never touch again will keep moving forward. That is the intended behaviour for most installations: a mail server that nobody updates is a mail server accumulating unpatched bugs, and the people running these deployments are generally not running a release-tracking process for them.
What actually gets updated
Section titled “What actually gets updated”An updater component inside the deployment resolves the currently published artifact versions and applies them. It can update three things, independently of each other:
- the Lambda code,
- the CloudFront edge functions,
- the UI assets.
Independently matters. A UI change does not force the mail-processing Lambdas to be replaced, and a Lambda update does not have to wait for anything else to be ready.
How updates are verified
Section titled “How updates are verified”Three properties govern how the updater applies a new version.
The new Lambda is smoke-tested before it is accepted
Section titled “The new Lambda is smoke-tested before it is accepted”Before an updated Lambda is left in place, the updater invokes it with a probe payload. The function recognises that payload and answers it without doing any real work — no mail is processed, nothing is written, no message moves. The probe is a question about readiness, not a transaction.
What the answer asserts varies per function, but it is consistently about startup health rather than behaviour: that the function’s configuration and environment load and validate, and that its critical dependencies actually answer. The checks range from verifying that an IAM role is present to confirming a CloudWatch log group is readable to performing a read against the DynamoDB table a function depends on — all quick verifications that catch the common sources of update failures.
A failed probe rolls that function back
Section titled “A failed probe rolls that function back”If the probe fails, the updater restores the function to the version that was previously deployed. The rollback is per-function: one bad artifact does not take the deployment with it, and it does not leave the rest of the system stranded on a half-applied release.
A probe result that cannot be classified is treated as inconclusive, and the update proceeds. This is a deliberate choice in favour of not blocking updates on ambiguity, and it is the reason the probe is designed to be cheap and unambiguous when it does answer.
The updater itself is open
Section titled “The updater itself is open”The updater is part of the open infrastructure code. You can read exactly how version resolution, probing and rollback work, rather than taking this page’s word for it. See Open Source for what is open and where it lives.
What the update check covers
Section titled “What the update check covers”The smoke probe verifies that a function starts up correctly, with its configuration validated and its dependencies reachable. Most update failures are configuration drift, a missing permission, or a dependency that moved, and the probe catches those before an update completes.
It does not send a message through the full pipeline and check what comes out the other side. A release that starts cleanly and validates its configuration, but handles some message shape incorrectly, passes the probe. During the beta, this is the check that runs before a version stays in place.
Operators who want a version change to happen only on their own decision — including any testing they run themselves before adopting a release — use pinned tracking to hold the deployment still until they choose to move it forward.
Pinning
Section titled “Pinning”pinned holds a deployment still: no version changes until the operator applies one directly. The clearest case is a beta: if you are running a pre-release channel, the thing you are testing is precisely the code that has not been proven yet, and having it replaced underneath you mid-test destroys the test. Pinning keeps what you observed yesterday running today.
The same applies to a deployment operating under a change-control regime, or one where a version change should line up with a maintenance window rather than arrive on its own schedule. The trade is explicit: pinning means nothing moves without you, including fixes.