The Upgrade docs describes 7 steps
and there is nothing specific with regard to AWS as it boils down to migrating from one server to another. (no difference between on prem vs cloud as far as Sonarqube migration is concerned)
There’s no guide into how to just “migrate history data” into a Sonar 8.1 database in which you already have other scan results generated with 8.1. However what you can do is upgrade an older-sonar-version database with the instructions provided by Eric.
As he already mentioned, in order to upgrade a sonar 6.7.2 database you need to install sonar 7.9, connect it to your existing database and follow the “Upgrade guide” he shared. Then do it again for sonar 8.1.
Depending on your version, you might need to upgrade to 7.9.2 first before 8.2.
For each migration, you copy the current db to the new db server in eks, then point your new Sonarqube server to this new db server, start it up, then launch http://xxx/setup, which will prompt you for db migration. Once that is done, sonarqube will be restarted for you to use.
From there, stop the instance, launch the instance with 8.2 sonarqube, use http://xxx/setup to migrate the db again.
That is it.