In GCP (Google Cloud Platform), there are various kinds of resources like images, snapshots, vm instances, etc. Sometimes there is a need to move the private images of one project to another project, to create a similar machine. So here are the steps which you can follow to move it from one project to another :
Step:1
Log in into your GCP console
Step:2
Create an image in Compute Engine’s Images section
Step:3
Make sure you have access to the Target Project where you need to move the image.
Step:4
Go to the Target Project, activate Cloud Shell
Step:5
Use the below command to move the image
gcloud compute –project=[target-project-id] images create [target-image-name-in-target-project] –source-image=[source-image-name] –source-image-project=[source-project-id]
Step:6
After the image is moved to the target project, it will be visible in images section of compute engine. Using that you can create vm instance in the project.
Follow the above steps to move the image to diff projects, and create similar machine in different project. This can help you to avoid making mistake while doing the same setup of machine in different projects.