On the Google Cloud Platform (GCP) there's no straight forward way to move a server from one project to another. We've been cleaning up and organizing some of our servers into their relative projects as they grow. This includes projects we own as well as moving some of the systems over to projects owned by the relative clients. While moving a server from one project to another isn't very straight forward its really not that hard to do. Only caveat is that you'll lose the IP of the current server. But, with this solution you're able to keep the current server up and running, stand up an identical machine in the new project, then all you need to do is cutover the DNS. Ready?
- Create a snapshot of the server you want to move
- Create a new disk from this snapshot
- Create an image from this disk (images can only be created from a disk that is not attached to an instance)
- Jump on over to the new project and create an instance from the image you created.
Done and done!