Skip to content

Install Updates

Some releases change the shape of your CloudFormation stack — renamed or replaced resources, new or changed IAM permissions, and similar structural changes. Those changes are never applied automatically, and they are never applied by ServerlessInbox at all. The admin UI prepares the update and shows you exactly what it would do; you then open it in the AWS Console and execute it there, under your own credentials.

It is worth separating two things that are easy to confuse, because together they answer the question “can this software change permissions in my AWS account without me?” The answer is no.

  • Artifact updates replace the code and assets your deployment runs: the Lambda code, the CloudFront edge functions, and the UI assets. These are swapped in place automatically, and the artifactTracking CloudFormation parameter controls how far they are allowed to move. At the shipped default, minor, your deployment follows patch releases only within its current minor version. See Self-Update for what that parameter controls and how an automatic artifact update is smoke-tested and rolled back.
  • Stack updates — what this page is about — change the CloudFormation template itself: resources added, removed or replaced, and IAM roles and policies changed. These are never automatic, at any artifactTracking setting. They are reviewed here and executed by you in the AWS Console.

Artifact updates cannot change your stack’s shape, and they cannot change permissions. Only a stack update can, and a stack update only ever happens when you run it yourself.

If you have set artifactTracking: pinned, that stops automatic artifact updates only. It has no effect on the flow described here: you still see available stack updates, still get the full review, and still apply them in the console exactly as below.

Open Infrastructure in the admin UI sidebar (/operations/lambda-concurrency) and scroll to the Install update section, below the concurrency, Lambda health, and recent-errors panels.

This section only appears if your deployment includes the install-update capability. It’s present in every standard ServerlessInbox deployment, but a bespoke or customized CDK deployment may not include it — if your deployment was built from a customized stack, check with whoever maintains it. When the capability isn’t present, this part of the Infrastructure page simply doesn’t render; there’s no error or placeholder in its place.

The Install update section shows your current version and, if newer versions exist, one or two buttons:

  • Update to v{next minor} — a routine, non-breaking release.
  • Update to v{next major}, marked with a Breaking badge — a structural update. Major releases can add, remove, or replace stack resources and can change IAM permissions.

Both lead to the same place: a change set to review, and then the AWS Console to execute it. The Breaking badge is a signal about how carefully to read the review, not about a different path.

If no newer version exists, the section shows a confirmation that you’re already on the latest version and there’s nothing further to do.

Clicking either update button creates a CloudFormation change set against your stack and opens the Review stack update dialog. Nothing is applied at this point, and nothing will be applied from this dialog — a change set is CloudFormation’s own preview of a proposed update, and creating one has no effect on your running stack.

While the change set is being computed, the dialog shows Preparing change set…. If creation fails, the dialog shows the reason and you can close it and try again.

Once the change set is ready, the dialog presents three ways to review exactly the same set of proposed changes:

  • Resource changes — a grouped list of every resource CloudFormation plans to add, modify, or remove. Any changes to IAM roles or permissions are pulled out into their own IAM-related changes group at the top, so they’re never buried in a long list. Everything else falls into Other changes. A Hide version-only changes toggle is on by default: a routine update commonly touches hundreds of resources with nothing but a version tag, and those aren’t useful to review individually. Turn it off to see every resource the change set touches.
  • Construct tree — the same resource changes, but grouped by the part of the stack each one belongs to, rather than presented as a flat list. Useful if you want to see which area of your deployment — mail receiving, authentication, the admin UI, and so on — a given change affects.
  • Raw template diff — a line-by-line diff of the underlying CloudFormation template, before and after. This is the ground truth the other two views are computed from; use it if you want to see precisely what will change, unfiltered and ungrouped.

A View stack in CloudFormation console link at the top of the dialog takes you to the stack itself, if you want to look at its current state while you review.

When you’re satisfied with the review, use the Open change set in AWS Console link at the bottom of the dialog. It takes you straight to this change set in CloudFormation, where AWS’s own execute action applies it — under your credentials, with your permissions, and with CloudFormation’s own confirmation step.

From there the update behaves like any other CloudFormation stack update you run yourself: you watch its progress in the console, and if it fails, CloudFormation’s default rollback returns the stack to the state it was in before the attempt. The console’s stack events are the record of what happened.

Executing a change set requires permission to do everything the change set does — including creating IAM roles and attaching policies across the account. If the product executed updates for you, it would have to hold those permissions permanently, which is effectively an administrator sitting in your AWS account at all times.

It doesn’t. The deployment’s own permissions extend to preparing a change set for its own stack and reading templates so it can show you the diff, and no further. Everything that actually changes your account goes through you, in the AWS Console, with your own credentials. That is why the review here is thorough and the execution isn’t: the part that needs privilege is the part you keep.

If you navigate away from the Infrastructure page (or close the browser) after creating a change set but before executing it, your review isn’t lost. The next time you open the Infrastructure page, the Install update section detects the pending change set and shows a Resume review of pending update, created [time] ago banner instead of the normal update buttons. Click Resume review to reopen the same review dialog exactly where you left off — you don’t need to recreate anything, and a different admin opening the page will see the same pending review, since it’s tracked by CloudFormation itself rather than tied to your browser session.

If a newer version is published while a review is still pending, the banner instead reads “A pending review is out of date — a newer version is now available”, with a Recreate action. Recreating replaces the outdated change set with a fresh one built against the current version, so that what you take to the console is the update you actually want.