Skip to content

Commit

Permalink
Add apphub.admin role for the organization in the test environment (G…
Browse files Browse the repository at this point in the history
…oogleCloudPlatform#10152)

* add apphub.admin role for the organizations that the CI runs the tests

* Change to use org instead of billing id

* Change to use org instead of billing id

---------

Co-authored-by: Krishnan Gopal <[email protected]>
  • Loading branch information
2 people authored and pawelJas committed May 16, 2024
1 parent 0cdc9ed commit 8e51b6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ci/infra/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ resource "google_organization_iam_member" "sa_storage_admin" {
member = google_service_account.sa.member
}

resource "google_organization_iam_member" "apphub_admin" {
org_id = data.google_organization.org.org_id
role = "roles/apphub.admin"
member = google_service_account.sa.member
}

resource "google_billing_account_iam_member" "sa_master_billing_admin" {
billing_account_id = data.google_billing_account.master_acct.id
role = "roles/billing.admin"
Expand Down

0 comments on commit 8e51b6d

Please sign in to comment.