Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How backup a instance image in another project or service

Hi!

I'm trying to schedule a VM to start and stop in a specific time, but when I try to add my instance the following error is presented:


Compute Engine System service account service-xxxxxxxxxxx@compute-system.iam.gserviceaccount.com needs to have [compute.instances.start,compute.instances.stop] permissions applied in order to perform this operation.

It seems to be a default service account but I don't know why my project do not have it. I was thinking about disable and enable my Compute Engine API again and see if it is going to be created again, but I have a VM in my project and it is working perfectly with all services needed.

I don't want to reconfigure it from scratch, but all the ways to backup it that I know is inside Compute Engine itself and on the same project, which means everything's going to be wiped when I disable the API.

Do you guys have any advice for my situation? Thank you in advance!

 

0 1 191
1 REPLY 1

Hello Marthiago,

Welcome to Google Cloud Community!

In order to have permissions like this, you must have roles/compute.instanceAdmin in order to create, modify and delete vm instances. If you will be managing vm instances that are configured to run as a service account,  you must also grant roles/iam.serviceAccountUser role.

You can grant this role on the organization, folder, or project that contains the instances, or you can grant it on individual instances.

This document may help you in Scheduling a VM instance to start and stop.

I hope this helps