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
krishnangopal1810 and Krishnan Gopal authored Mar 21, 2024
1 parent d874e11 commit de6caa4
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 de6caa4

Please sign in to comment.