FAST: Resman: Update billing.tf (#721)
* FAST: Resman: Update billing.tf Add billing.costsManager to the PF SAs to allow it to create billing alerts. * fix linting Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
parent
9de2878507
commit
0d9fac316a
|
@ -42,6 +42,7 @@ module "billing-organization-ext" {
|
|||
organization_id = "organizations/${var.billing_account.organization_id}"
|
||||
iam_additive = {
|
||||
"roles/billing.user" = local.billing_ext_users
|
||||
"roles/billing.costsManager" = local.billing_ext_users
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,3 +56,12 @@ resource "google_billing_account_iam_member" "billing_ext_admin" {
|
|||
role = "roles/billing.user"
|
||||
member = each.key
|
||||
}
|
||||
|
||||
resource "google_billing_account_iam_member" "billing_ext_costsmanager" {
|
||||
for_each = toset(
|
||||
local.billing_ext ? local.billing_ext_users : []
|
||||
)
|
||||
billing_account_id = var.billing_account.id
|
||||
role = "roles/billing.costsManager"
|
||||
member = each.key
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue