Search code examples
google-cloud-platformgoogle-compute-engineservice-accounts

What IAM permissions do I need to use to create a Service Account similar to Default Compute Engine Service Account?


I've deleted the default service account and it has been longer than 30 days. I don't know if it applies to all marketplace solutions, but the one that I want to use can't be launched without the compute engine default service account.

What are the IAM permissions I need to set to create a service account that has the same permissions as the compute engine default service account to launch VM from marketplace?

I tried Compute Admin, compute.imageUser and Compute Instance Admin, but to no avail.

In addition to that, why does the marketplace solution require the default service account when it is recommended to disable/remove the default compute engine service account because of the editor role?


Solution

  • What is the compute engine default service account?

    By default, the account is automatically granted the project editor role on the project and is listed in the IAM section of Cloud Console. This service account is only deleted when the project is deleted. However, you can change the roles granted to this account, including revoking all access to your project.

    Documentation