Skip to content
Weibo's Home
Go back

GCP resource hierarchy

Edit page

Overview

Scenario:

Solution:

Organization

graph LR R[Organization root] —> A[Team A folder] R[Organization root] —> B[Team B folder] A[Company folder] —> A1[Team A production folder] A[Company folder] —> A2[Team A staging folder] B[Company folder] —> B1[Team B production folder] B[Company folder] —> B2[Team B staging folder] R[Organization root] —> P[playground folder]

Nested Google Group

graph LR

subgraph A [Team A Google Group] A1[Team A production Google Group] A2[Team A staging Google Group] end

IAM relationship between Google Group and Google project

graph LR A[Team A Google Group] — Folder Admin/Owner —>AF[Team A folder] A1[Team A production Google Group] — Folder Admin/Owner —>A1F[Team A production folder] A2[Team A production Google Group] — Folder Admin/Owner —>A2F[Team A staging folder] P[playground Google Group] — Folder Admin/Owner —>PF[Team B playground folder]

Terraform

Create service account per GCP project as Terraform repo’s credential.

graph LR; A[A GCP project] —> AT[A Terraform repo]; AT[A Terraform repo] —> A[A GCP project]; B[B GCP project] —> BT[B Terraform repo]; BT[B Terraform repo] —> B[B GCP project];


Edit page
Share this post:

Previous Post
OpSec
Next Post
KVM GPU passthrough Ubuntu 20.04