Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.33 KB

File metadata and controls

46 lines (34 loc) · 1.33 KB

Module Billing Accounts IAM

This optional module is used to assign Billing Accounts roles

Usage

module "billing-account-iam" {
  source  = "terraform-google-modules/iam/google//modules/billing_accounts_iam"
  version = "~> 8.0"

  billing_account_ids = ["035617-1B8VBC-AF0TD9"]

  mode = "additive"

  bindings = {
    "roles/billing.viewer" = [
      "serviceAccount:[email protected]",
      "group:[email protected]",
    ]

    "roles/billing.user" = [
      "user:[email protected]",
    ]
  }
}

Inputs

Name Description Type Default Required
billing_account_ids Billing Accounts IDs list to add the IAM policies/bindings list(string) [] no
bindings Map of role (key) and list of members (value) to add the IAM policies/bindings map(list(string)) n/a yes
mode Mode for adding the IAM policies/bindings, additive and authoritative string "additive" no

Outputs

Name Description
billing_account_ids Billing Accounts which received bindings.
members Members which were bound to the billing accounts.
roles Roles which were assigned to members.