Can I use images from another project in my project?

0 votes
Can I use images from another project in my project on Google Cloud Platform?
Oct 18 in GCP by Sam
• 3,700 points
11 views

1 answer to this question.

0 votes

If someone has granted you the compute.imageUser role, you can access the images in the project by specifying the image project in your requests. 

For example, to get a list of images available to you:

gcloud compute images list --project [IMAGE_PROJECT]

To learn how to use an image to create new resources, such as creating an instance, read Creating and starting an instance.

For example, the following command creates an instance using an image called database-image-a from project database-images:

gcloud compute instances create test-instance --image database-image-a --image-project database-images
answered Oct 18 by Sirajul
• 36,220 points

Related Questions In GCP

0 votes
1 answer

How can I find out who created a project in GCP?

You could probably use Stackdriver Cloud Audit ...READ MORE

answered Oct 9 in GCP by Sirajul
• 36,220 points
15 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 36,220 points
33 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 36,220 points
39 views
0 votes
1 answer