← ALL DOCS
DOCS · PLATFORM TEAMS

Upgrading

This guide is for the platform team that runs BucketDeck. It covers how releases work, how you find out about new ones, and how to upgrade and roll back.

How versions work

  • Semantic versions. Every release has a number MAJOR.MINOR.PATCH, for example 0.2.0:
    • PATCH releases (0.2.1) fix bugs and security issues. They never change parameters.
    • MINOR releases (0.3.0) add features. New parameters always have a safe default.
    • MAJOR releases (1.0.0) may need action from you. Their release notes say exactly what.
  • One template pair per release, in the vendor's public bucket in us-east-1. The same URLs work in any Region:
    https://cloudcertainty-bucketdeck-us-east-1.s3.us-east-1.amazonaws.com/<edition>/<version>/main.yaml
    https://cloudcertainty-bucketdeck-us-east-1.s3.us-east-1.amazonaws.com/<edition>/<version>/spoke-role.yaml
    <edition> is pro: one template for every plan. main.yaml names its release, whose code (API, worker, portal deployer and the web portal) Cloud Certainty's delivery service keeps unchanged, so a release can't change underneath you. The installer installs the code of your plan from it.
  • Upgrading is a stack update. Update the stack with the newer template and keep every parameter value. There is no "version" parameter. (The Advanced parameter ArtifactVersionOverride is for Cloud Certainty support only; leave it empty.)
  • Published releases never change, so you can roll back with the same procedure.

Which version am I running?

  • Portal: Administration → About.
  • Stack output ProductVersion:
    bash
    aws cloudformation describe-stacks --stack-name <stack> \
      --query "Stacks[0].Outputs[?OutputKey=='ProductVersion'].OutputValue" --output text

How you hear about new releases

  • Release notes: cloudcertainty.com/bucketdeck/releases, linked from Administration → About.
  • Release manifest: https://cloudcertainty-bucketdeck-us-east-1.s3.us-east-1.amazonaws.com/<edition>/latest.json names the latest release, whether it contains security fixes, the oldest supported version and the template URLs. You can poll it from your own tooling.

Between installations the stack contacts Cloud Certainty only to download your plan's code after a plan change: it learns about new releases only from you.

Before you upgrade

  • Read the release notes. A MAJOR release lists any action you need to take, including spoke role changes.
  • Use the same permissions as for the install. The update can create, change or delete IAM roles (three have fixed names), Lambda functions, the state machine and so on.
  • Running jobs keep running. Jobs started before the upgrade continue on the new worker code (each release reads the job state of the release before it). For a MAJOR release, let long jobs finish first, or check the release notes.
  • No backup step is needed. The DynamoDB table and the data bucket are never replaced by an upgrade, and the table has point-in-time recovery.

Upgrade the hub

AWS console

  1. Open CloudFormation → Stacks, select the stack and choose Update stack → Make a direct update.
  2. Choose Replace current template → Amazon S3 URL, paste the new main.yaml URL, choose Next.
  3. Keep the current values of every parameter. New parameters appear with their defaults. Leave the Advanced (support use only) parameters empty. Choose Next twice.
  4. Acknowledge "AWS CloudFormation might create IAM resources with custom names" and Submit. The update usually takes 5–10 minutes.

AWS CLI

This keeps the current value of every parameter the new template still has; parameters that are new in this release get their defaults.

bash
STACK=bucketdeck
REGION=eu-west-1
TEMPLATE_URL=https://cloudcertainty-bucketdeck-us-east-1.s3.us-east-1.amazonaws.com/<edition>/<version>/main.yaml

NEW=$(aws cloudformation get-template-summary --region "$REGION" --template-url "$TEMPLATE_URL" \
  --query 'Parameters[].ParameterKey' --output text | tr '\t\r' '  ')
OLD=$(aws cloudformation describe-stacks --region "$REGION" --stack-name "$STACK" \
  --query 'Stacks[0].Parameters[].ParameterKey' --output text | tr '\t\r' '  ')
PARAMS=()
for k in $NEW; do
  case " $OLD " in *" $k "*) PARAMS+=("ParameterKey=$k,UsePreviousValue=true") ;; esac
done

aws cloudformation update-stack --region "$REGION" --stack-name "$STACK" \
  --template-url "$TEMPLATE_URL" --parameters "${PARAMS[@]}" \
  --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM
aws cloudformation wait stack-update-complete --region "$REGION" --stack-name "$STACK"

To change a value in the same update, replace its UsePreviousValue=true entry with ParameterValue=<value>. To review the changes first, use create-change-set with the same arguments plus --change-set-name upgrade, then execute-change-set.

Upgrade the spoke roles

Spoke roles change rarely; the release notes say when. To update them, update each spoke stack (or the StackSet) with the new spoke-role.yaml URL, keeping the parameter values:

bash
aws cloudformation update-stack-set --region us-east-1 --stack-set-name bucketdeck-spoke \
  --template-url https://cloudcertainty-bucketdeck-us-east-1.s3.us-east-1.amazonaws.com/<edition>/<version>/spoke-role.yaml \
  --parameters ParameterKey=TrustedPrincipals,UsePreviousValue=true ParameterKey=ExternalId,UsePreviousValue=true \
    ParameterKey=RoleName,UsePreviousValue=true ParameterKey=AccessLevel,UsePreviousValue=true \
    ParameterKey=BucketScope,UsePreviousValue=true ParameterKey=AllowCloudWatchMetrics,UsePreviousValue=true \
  --capabilities CAPABILITY_NAMED_IAM

The hub role ARNs (SpokeTrustedPrincipals) don't change on upgrade, so existing spoke roles keep working.

What happens during an upgrade

  • The new code is installed first. The update runs the installer of the new release. It downloads the code of your plan from Cloud Certainty's delivery service into the artifacts bucket under the new version's folder (about a minute), and removes the code of any other plan. Only then are the Lambda functions and the portal updated. If it fails, the update stops and rolls back with nothing else changed. The previous version's folder is kept, so a rollback finds its code.
  • The API switches to the new code within seconds; in-flight requests complete.
  • Jobs in flight continue; their next step runs on the new worker.
  • The portal is redeployed. Users get the new version when they reload the page.
  • Data (settings, roles, connections, grants, jobs, templates, favorites, audit) is kept.
  • If the update fails, CloudFormation rolls the stack back to the previous release automatically.

Rollback

To go back after a successful upgrade, upgrade "to" the previous release with the same steps and the previous release's template URL. Every release reads the data of the release before and after it, so rolling back by one release is safe. Rolling back further isn't supported; contact support.

Version support policy

  • Supported: the latest release (N) and the release before it (N−1).
  • Security fixes are released only as a new latest release, so upgrade promptly when the release notes or latest.json mark a release as a security release.
  • latest.json names the oldest supported version (minimumSupported).

Troubleshooting

SymptomCheck
Parameters: [X] do not exist in the templateOnly pass parameters the new template has; use the CLI script above.
Requires capabilities : [CAPABILITY_NAMED_IAM]Add --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM, or tick the acknowledgement.
The update fails at ArtifactInstallSee Troubleshooting in the install guide. No active BucketDeck subscription was found means the account's subscription is missing or ended. The stack rolls back on its own.
The portal still shows the old versionReload the page. If ProductVersion already shows the new version, the portal deployment (custom resource AmplifyDeployment) is still finishing.
Administration → About says installing your plan's features failedChoose Apply plan now there; BucketDeck also tries again within the hour. If it keeps failing, update the stack with its current template and set InstallRevision to a new value (Between plans), or contact support.
The installer log says "waiting for the delivery service" or "waiting for your plan's entitlement"A new subscription or plan takes a few minutes to take effect; the installer waits up to 10 minutes. If it still fails, the stack rolls back with nothing changed: retry the update a few minutes later.
The stack is in UPDATE_ROLLBACK_FAILEDUsually a resource changed outside CloudFormation. Fix it, then Stack actions → Continue update rollback. Contact support if it persists.

Between plans

BucketDeck is one AWS Marketplace product; your subscription has one plan (Starter, Team, Business or Enterprise).

  1. Upgrade in AWS Marketplace: open your AWS Marketplace subscriptions (opens in a new tab), choose BucketDeck and pick the higher plan (this needs your AWS Marketplace purchasing permissions). AWS charges only the difference for the rest of your contract (prorated), on the same subscription: there is nothing to cancel and no gap.
  2. Downgrades take effect when your contract renews: choose the lower plan for the renewal there. To change sooner, contact Cloud Certainty support or use the Cloud Certainty portal (https://my.cloudcertainty.com/index.php?m=ccmarketplace&product=bucketdeck (opens in a new tab)), and we can arrange it with a new offer.
  3. Within a few minutes of the change (or after Check the subscription in Administration → About) About shows the new plan. If the subscription briefly can't be confirmed during the change, BucketDeck keeps working on your current plan for up to 72 hours.
  4. The new plan's features install themselves, within about an hour of the change: BucketDeck installs your plan's code in the stack and switches the portal and its functions to it. To do it at once, choose Check the subscription and then Apply plan now in Administration → About. It takes a few minutes; About shows the progress, and your data and settings stay as they are. You don't update the stack for it. From Business to Enterprise nothing needs installing.

If installing fails, About says why and offers Apply plan now again; the running code stays as it was, and BucketDeck tries again within the hour. You can always install your plan's code by hand: update the stack with its current template (Update stack → Use current template, or a newer release's template) and set the parameter InstallRevision to a new value, for example from 1 to 2, keeping every other value. With the AWS CLI, run the script under AWS CLI with the template URL of the release the stack runs (or a newer one), and replace the InstallRevision entry with ParameterKey=InstallRevision,ParameterValue=2.

After a downgrade the plan follows your subscription within an hour, and the features above it lock: managed share links stop opening, saved templates and retries run with their concurrency capped to the new plan, and existing prefix grants and IP allowlist ranges stay enforced. The lower plan's code then installs itself the same way.

Your plan's code follows your subscription: after each plan change and at each installation (a new release or a new InstallRevision), the stack keeps the code of the plan you have and removes the code of any other plan from its artifacts bucket.

Something unclear or missing? Email support@cloudcertainty.com.

Tell us what you have. We'll make it better and cheaper.

Send a short description of your current setup. We will tell you what we would improve, what it would cost, and where the savings are. A considered reply from an engineer, not a sales sequence.

TELL US ABOUT YOUR SETUP →