Upgrading
This guide is for the platform team that runs FunctionPilot. It covers how releases work, how you find out about new ones, how to upgrade and roll back, and how to change plan.
How versions work
- Semantic versions. Every release has a number
MAJOR.MINOR.PATCH, for example0.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.
- PATCH releases (
- One template pair per release, in the vendor's public bucket in us-east-1. The same URLs work in
any Region:
https://cloudcertainty-functionpilot-us-east-1.s3.us-east-1.amazonaws.com/pro/<version>/main.yaml https://cloudcertainty-functionpilot-us-east-1.s3.us-east-1.amazonaws.com/pro/<version>/spoke-role.yamlmain.yamlpins the container image by digest, and the image carries the release's code (the API, the worker, the live tail function, the portal deployer, the update notifier and the web app), so a release can't change underneath you. - Upgrading is a stack update. Update the stack with the newer template and keep every parameter
value. There is no "version" parameter. (The Advanced parameters
ArtifactVersionOverrideandImageUriOverrideare for Cloud Certainty support only; leave them empty.) - Published releases never change, so you can roll back with the same procedure.
Which version am I running?
- Portal: Administration › Licence and about, or the version in the footer.
- Stack output
ProductVersion:bashaws cloudformation describe-stacks --stack-name <stack> \ --query "Stacks[0].Outputs[?OutputKey=='ProductVersion'].OutputValue" --output text
How you hear about new releases
- In the portal: with
UpdateChecks = Enabled(the default), the stack reads the public release manifest once a day. When a newer release exists, administrators see a banner on the Administration pages, and Licence and about shows the latest version, its summary, whether it is a security release, the release notes and How to upgrade with the template URL and an AWS CLI command. - By email or your own tooling: the stack publishes one message per new release to its SNS topic
(output
UpdateTopicArn). SetUpdateNotificationEmailto subscribe an address, or subscribe your own endpoints. - Release notes: cloudcertainty.com/functionpilot/releases.
- AWS Marketplace: each release is a new version of the listing.
- Release manifest:
https://cloudcertainty-functionpilot-us-east-1.s3.us-east-1.amazonaws.com/latest.jsonnames the latest release, whether it contains security fixes, the oldest supported version and the template URLs. You can poll it yourself.
The update check is a plain read of that public file. Nothing about you, your users or your account
is sent. With UpdateChecks = Disabled the stack makes no outbound call to the vendor at all.
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 (two have fixed names), Lambda functions and so on.
- No backup step is needed. The DynamoDB table is never replaced by an upgrade, and it has point-in-time recovery.
Upgrade the hub
AWS console
- Open CloudFormation › Stacks, select the stack and choose Update stack › Make a direct update.
- Choose Replace current template › Amazon S3 URL, paste the new
main.yamlURL and choose Next. - Keep the current values of every parameter. New parameters appear with their defaults. Leave the Advanced (support use only) parameters empty. Choose Next twice.
- Acknowledge "AWS CloudFormation might create IAM resources with custom names" and Submit. The update usually takes 5 to 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.
STACK=functionpilot
REGION=eu-west-2
TEMPLATE_URL=https://cloudcertainty-functionpilot-us-east-1.s3.us-east-1.amazonaws.com/pro/<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.
What happens during an upgrade
- The new code is installed first. The update runs the one-off installer task from the new release's image. It checks the licence and copies the new code into the artifacts bucket under the new version's folder (about a minute). Only then are the Lambda functions and the web app updated. If the installer 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; requests in flight complete.
- The web app is redeployed. Users get the new version when they reload the page.
- Data (settings, roles, connections, grants, saved tests and runs, audit log) is kept. The cache is rebuilt as needed.
- If the update fails, CloudFormation rolls the stack back to the previous release automatically.
Upgrade the spoke roles
Spoke roles change rarely; the release notes say when (0.2 is such a release, see
Upgrading to 0.2). The local connection's role is part of the hub stack and is
updated with it. To update the spoke roles, update each spoke stack (or the StackSet) with the new
spoke-role.yaml URL, keeping the parameter values:
aws cloudformation update-stack-set --region us-east-1 --stack-set-name functionpilot-spoke \
--template-url https://cloudcertainty-functionpilot-us-east-1.s3.us-east-1.amazonaws.com/pro/<version>/spoke-role.yaml \
--parameters ParameterKey=TrustedPrincipal,UsePreviousValue=true ParameterKey=ExternalId,UsePreviousValue=true \
ParameterKey=RoleName,UsePreviousValue=true ParameterKey=AccessLevel,UsePreviousValue=true \
--capabilities CAPABILITY_NAMED_IAMFor a single spoke stack:
aws cloudformation update-stack --region <region of the spoke stack> --stack-name functionpilot-spoke \
--template-url https://cloudcertainty-functionpilot-us-east-1.s3.us-east-1.amazonaws.com/pro/<version>/spoke-role.yaml \
--parameters ParameterKey=TrustedPrincipal,UsePreviousValue=true ParameterKey=ExternalId,UsePreviousValue=true \
ParameterKey=RoleName,UsePreviousValue=true ParameterKey=AccessLevel,UsePreviousValue=true \
--capabilities CAPABILITY_NAMED_IAMThe hub role ARN (SpokeTrustedPrincipal) doesn't change on upgrade, so existing spoke roles keep
working.
Upgrading to 0.2
0.2 adds the code viewer and editor, the deployment timeline, streaming live tail, the Errors page, right-sizing and Power Tuning, log and actual cost, and scheduled jobs (see the user guide and the admin guide). It needs two things from you.
1. Update the hub stack, then every spoke stack
Update the hub as usual. The update adds the worker and live tail Lambda functions, an hourly
EventBridge rule and a Lambda function URL for live tail (see
What the stack runs). If your organization's SCPs deny Lambda
function URLs with auth type NONE, ask for an exception for the <NamePrefix>-livetail function
first, or the update rolls back.
Then update every spoke stack or StackSet with the 0.2 spoke-role.yaml, as shown above. The 0.2
role adds these permissions:
| Access level | Added in 0.2 | Used by |
|---|---|---|
ReadOnly and above | cloudtrail:LookupEvents | Deployment timeline and chart markers |
compute-optimizer:GetLambdaFunctionRecommendations, compute-optimizer:GetEnrollmentStatus | Memory right-sizing | |
ce:GetCostAndUsageWithResources | Actual cost | |
logs:StartLiveTail | Streaming live tail | |
logs:DescribeLogGroups | Log retention and cost | |
Full | lambda:UpdateFunctionCode | The code editor |
states:StartExecution, states:DescribeExecution on state machines whose name contains powerTuning | Power Tuning |
Until a spoke stack is updated, everything from 0.1 keeps working in that account, and so do the code viewer, version compare, last invoked dates, tags, cold starts and the Errors page. These fail there with an AWS access error:
- the deployment timeline and its chart markers;
- memory right-sizing;
- streaming live tail (on the Logs tab and the Live tail page);
- the code editor and Power Tuning (
Fullconnections); - the log retention and cost job and the actual cost job, so those columns stay empty for that account.
The local connection is updated with the hub stack, so the hub account works at once.
2. Review the new settings
- Scheduled jobs. After the upgrade, the worker starts within the hour. The last invoked, cold starts, error inbox, and log retention and cost jobs are on by default (the last three only run on Business and above); actual cost is off. Each job has a small AWS cost; see Scheduled jobs and turn off what you don't need.
- The
codepermission. Reading code is now a permission of its own. Existing grants witheditinclude it, so nobody loses access. To let people read and compare code without changing it, addcodeto their grants (Grants). - Cost Explorer and Compute Optimizer (Business and above) need to be turned on in AWS before actual cost and right-sizing show data (AWS services to turn on).
- Power Tuning (Business and above) needs a state machine per connection (Power Tuning).
Rolling back from 0.2
Roll back the hub stack as described below. You don't need to roll back the spoke stacks: 0.1 doesn't use the added permissions.
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
- Security fixes are released only as a new latest release, so upgrade promptly when the banner,
the release notes or
latest.jsonmark a release as a security release. - Licence and about and
latest.jsonname the oldest supported version.
Changing plan
Your plan comes from your AWS Marketplace contract, which FunctionPilot reads from AWS License Manager. Moving between Team, Business and Enterprise needs no stack update: the new features turn on as soon as the new contract is active (FunctionPilot rechecks the licence every few minutes; Check licence now on Licence and about reads it at once). While the agreement changes, the last active plan keeps working for up to 72 hours, so nobody loses access in between.
To move to a higher plan, or from FunctionPilot Starter to the FunctionPilot listing, contact sales@cloudcertainty.com: we prepare an AWS Marketplace offer that credits the rest of your current contract, and tell you whether the move needs a stack update (moving between Team, Business and Enterprise never does). Your data, settings and grants stay as they are. To move to a lower plan, contact us before your contract renews; features the lower plan lacks then show a plan badge, and your data is kept.
Troubleshooting
| Symptom | Check |
|---|---|
Parameters: [X] do not exist in the template | Only 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 ArtifactInstall | See Troubleshooting in the installation guide. Exit code 3 means the account's licence is missing or expired. The stack rolls back on its own. |
| The portal still shows the old version | Reload the page. If ProductVersion already shows the new version, the web app deployment (custom resource AmplifyDeployment) is still finishing. |
The stack is in UPDATE_ROLLBACK_FAILED | Usually a resource changed outside CloudFormation. Fix it, then Stack actions › Continue update rollback. Contact support if it persists. |
Something unclear or missing? Email support@cloudcertainty.com.