Upgrade Code Ocean
Learn how to upgrade your Code Ocean Version
Last updated
Was this helpful?
Learn how to upgrade your Code Ocean Version
Last updated
Was this helpful?
Upgrading a Code Ocean VPC deployment to a new version is performed by simply updating the CloudFormation stack with a new CloudFormation template.
If you have a backup stack configured, please follow the upgrade procedure for the backup stack using the prior to upgrading the linked primary deployment.
If you are using a least privileged IAM role to update your CloudFormation stack, make sure to first update your least privileged IAM role. .
Before you start the CloudFormation update of your Code Ocean VPC stack, it's required that all active sessions are saved and there are no ongoing computations.
Putting the system in maintenance mode restricts user access to the system, while performing essential tasks prior to a system update, including stopping running computations, stopping system and AWS Batch jobs, and terminating worker instances.
From the Code Ocean VPC Admin Panel, click System Maintenance
Click on Enable Maintenance Mode
The system will provide progress information on the maintenance mode steps. When the steps are complete, the system is ready and you can then proceed with the CloudFormation upgrade. Once the upgrade is complete, the system will automatically disable maintenance mode. Alternatively, you can manually disable maintenance mode at any time by clicking Disable Maintenance Mode.
Click Next when you are done.
The Analytics RDS Instance Allocated Storage parameter must be verified during upgrades, as the RDS instance storage can scale up automatically. The parameter should be adjusted accordingly to prevent upgrade failures.
Click Next.
You can specify tags (key-value pairs) for resources in your stack and set advanced options.
Click Next when you are done.
Review and assure that all the details are correct.
Check the box to acknowledge that CloudFormation might create IAM resources.
Click Update stack to start the deployment.
After you click on Update stack, you will be redirected to the stack screen where you can follow the progress of your stack update under the Events tab.
When the stack update is finished, the state of the CloudFormation stack will turn into UPDATE_COMPLETE
.
The maintenance mode is introduced in v3.1, so if you are upgrading from version < 3.1, please follow to manually stop the activity on AWS before updating the CFN Stack.
Upgrading Code Ocean is done by updating the CloudFormation stack you've :
On the next screen, select Replace current template, then Amazon S3 URL, and specify the CloudFormation template URL. You can find the URL in section, or use a URL you've received from our support team:
Stack's Parameters will be set to the values that have been set upon the latest upgrade/deployment, or to their recommended defaults. Please visit the page for the full list of parameters and their purpose. Please contact our support or email if you have any questions or you need help regarding parameters values.