This guide covers how to upgrade to a new version of Accurate.Video when running on Amazon Elastic Container Service (Amazon ECS).
This guide is a continuation of the ECS installation guide below and is only valid when running on ECS.
The first thing is to check the changelog of Accurate.Video to see what changes there are in a new version. Check the link below for the full changelog.
Accurate.Video versions follow semantic versioning, making it easy to see if there are breaking changes that need to be considered before upgrading. If there are breaking changes, the changelog will link to a migration guide that outlines the required steps to go through before attempting the upgrade.
It's good practice to always make a manual snapshot of the database prior to the upgrade. Database migrations are applied automatically when you upgrade, and in case something goes wrong or you want to rollback to a previous version, a snapshot is available. Make a snapshot and name it something relevant. Refer to the Amazon RDS snapshot guide below for instructions on how to do this.
The first step is to find the stack in the AWS CloudFormation console.
Click on update at the top to update the stack.
Select use current template, and click Next.
On the next screen, you get the same screen as when you launched the stack. Here you can make any changes to the stack details. Scrolling down reveals the versions for the different components (adapter, frontend, jobs, and keycloak).
Update the versions of the components you want to upgrade, then click next and go through the last steps to finish updating the stack.
Once you're finished, wait until CloudFormation updates the stack. Accurate.Video is now updated!
Note that this guide can also be used to roll back to an old version. Make sure you have a database snapshot that can be restored as well.