You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Every resource in GCP belongs to a project, and every project exists within a resource hierarchy. Understanding this hierarchy and how Identity and Access Management (IAM) works is fundamental to securing and organising your cloud environment.
GCP organises resources in a four-level hierarchy:
Organisation (example.com)
|
|-- Folder: Engineering
| |-- Project: web-app-prod
| |-- Project: web-app-dev
|
|-- Folder: Finance
| |-- Project: billing-system
|
|-- Project: shared-networking
| Level | Description |
|---|---|
| Organisation | The root node, tied to a Google Workspace or Cloud Identity domain |
| Folders | Optional grouping mechanism for projects (can be nested) |
| Projects | The core organisational unit — all resources belong to a project |
| Resources | The actual GCP resources (VMs, buckets, databases, etc.) |
A project is the fundamental unit in GCP:
Folders let you group projects for organisational purposes:
The organisation node represents your entire company:
IAM controls who (identity) can do what (role) on which resource (scope).
An IAM policy binding has three parts:
| Part | Description | Example |
|---|---|---|
| Principal | Who is requesting access | user:alice@example.com, serviceAccount:my-sa@project.iam.gserviceaccount.com |
| Role | What permissions are granted | roles/compute.instanceAdmin |
| Resource | Where the role applies | Project, folder, or specific resource |
| Principal Type | Description |
|---|---|
| Google Account | A personal or Workspace user (user:alice@example.com) |
| Service Account | An identity for applications and VMs |
| Google Group | A named group of users (group:devs@example.com) |
| Google Workspace domain | All users in a domain |
| allAuthenticatedUsers | Any authenticated Google account (use with caution) |
| allUsers | Anyone on the internet (use with extreme caution) |
GCP offers three types of roles:
| Role | Permissions |
|---|---|
| Viewer | Read-only access to all resources |
| Editor | Read-write access to all resources |
| Owner | Full control including IAM management and billing |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.