For couple of weeks, I’ve been looking for an easy way of migrating virtual machine from one Google Cloud Platform (GCP) account to another. At first, I wanted to follow an old Medium post, but I’ve found it rather complicated. Therefore, I’ve decided to tinker myself. It turns out you can easily transfer VM images between projects/accounts in three simple steps thanks to
Create imagefeature as follows:
- Add read-access (Viewer) for new account/project using IAM admin console
- Create your instance custom image from Disk or Snapshot
- Create new VM in new account / project using Custom image you have just created
Hope someone will find it useful!