I am working on my personal project migration from AWS to AWS.
I have a requirement to migrate whole Gitlab from one AWS account to another.
Is it possible if I am creating AMI of current server where my Gitlab-CE is installed and sending this AMI to new AWS account and spinning new server from this AMI.
In this way all my Users , Projects and Repos will also migrated.
Can anyone tell me if it is possible or not and if there are any challenges in it.
You would probably get better assistance for AWS related issues by asking the AWS support team for help. Specifically, transferring an AWS instance to another account. What is on the AWS server is irrelevant.
So ask AWS is it possible to transfer an instance between user accounts.
Transfer of AWS instance from one account to another is possible , but my question is if we are able to transfer server then is it possible that we can create a new Gitlab with that server which will have all the details of previous Gitlab account.
If Gitlab is installed on it and you transfer it, then you don’t need to create a new Gitlab because it already exists, installed and running on the server.
You can even make a backup of Gitlab and transfer it yourself to a different server. I suggest reading the backup/restore documentation: Back up and restore GitLab | GitLab using this method, you can backup on AWS, and then restore it anywhere else, so OVH, Linode, Vultr, DigitalOcean or Azure, GCP as well.
you can do it like AWS suggests in their KB.
Assuming you have all-in-one GitLab instance (everyting runs there including DB and other components) and everything internally points to localhost or 127.0.0.1 and you will update all DNS records since you will get new IP it should work just fine. GitLab server won’t notice a thing.