Skip to content

Commit

Permalink
Add project permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
romanini-ciandt committed Oct 15, 2024
1 parent 1a84ca2 commit ed8e4d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/setup/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ resource "google_folder_iam_member" "int_test" {
member = "serviceAccount:${google_service_account.int_test.email}"
}

resource "google_project_iam_member" "int_test_prj" {
for_each = toset(local.int_required_roles)

project = module.project_ci_kms.project_id
role = each.value
member = "serviceAccount:${google_service_account.int_test.email}"
}

resource "google_billing_account_iam_member" "tf_billing_user" {
billing_account_id = var.billing_account
role = "roles/billing.admin"
Expand Down

0 comments on commit ed8e4d2

Please sign in to comment.