You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Service accounts are special identities designed for applications, VMs, containers, and automated processes — not for humans. They are one of the most important and most frequently misconfigured aspects of GCP IAM.
A service account is:
Format: <name>@<project-id>.iam.gserviceaccount.com
Example: api-backend@my-project.iam.gserviceaccount.com
| Type | Created By | Example | Can Delete? |
|---|---|---|---|
| User-managed | You | my-sa@proj.iam.gserviceaccount.com | Yes |
| Default | GCP (when APIs are enabled) | PROJECT_NUMBER-compute@developer.gserviceaccount.com | Yes (but not recommended) |
| Google-managed | Google (internal) | *@cloudservices.gserviceaccount.com | No |
When you enable the Compute Engine API, GCP creates a default compute service account:
<PROJECT_NUMBER>-compute@developer.gserviceaccount.com
Important: The default compute service account has the roles/editor basic role. This is far too broad for production. Best practice is to:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.