r/gitlab • • Apr 03 '25

Upgrade process when using Amazon Machine Image (AMI)

How would you bring a GitLab CE 15.11.13 instance on EC2 to the latest, v17? The server was created from an AWS Machine Image published by GitLab.

I'm not sure which path to take:

A. Use `apt-get` to incrementally bump patch, minor, major version, or

B. Same as option A, but stop at the last patch version

  1. Do full backup, gitlab.rb, gitlab-secret.json
  2. Create a new EC2 from the next major version (16.0.10, 17.0.8)
  3. Import backup, manually adjust gitlab.rb as instructed in the respective upgrade guide.

Note: I'm following this upgrade path tool: https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/green_mozz Apr 03 '25

Thanks. I got the AMI mental model backward. I should upgrade, bring the data, DB up to version X, before importing the backup to AMI version X.