0

I am trying to setup an autoscaler with the "Compute Engine default service account" and receiving an error when it tries to create VMs.

Instance 'instance-group-1-7wsz' creation failed: Required      'compute.disks.create' permission for 'projects/[redacted]' (when acting as '[redacted]@cloudservices.gserviceaccount.com')

Instance 'instance-group-1-hw12' creation failed: Required 'compute.instances.setTags' permission for 'projects/[redacted]/zones/us-east1-b/instances/instance-group-1-hw12' (when acting as '[redacted]@cloudservices.gserviceaccount.com')

GCE Error:

Screenshot

Grzenio
  • 35,875
  • 47
  • 158
  • 240

2 Answers2

0

Fixed it by just creating a new project. I didn't even think of that.

0

I think it's a bug in GCE in that the IAM account it's trying to use is not configured. To work around this:

  • On your Google Developer Console.
  • Go to "IAM & Admin -> IAM".
  • Click "Add".
  • Add as member the-ID-shown-in-the-error-message@cloudservices.gserviceaccount.com and select the Roles "Project->Editor".
  • Click "Add".
Dan
  • 736
  • 8
  • 12
  • Thanks for the tip! I think it is a bug somewhere. I tried to add the IAM user with full permissions to the project, but to no avail. I think I may have messed it up earlier, when I was trying to delete something. Luckily, it was a practice project. I did create a new project named "playground" which is my production, whoops :) – Kevin Murphy Apr 21 '17 at 17:37