» google_billing_account_iam_policy

Allows management of the entire IAM policy for an existing Google Cloud Platform Billing Account.

» Example Usage

resource "google_billing_account_iam_policy" "policy" {
  billing_account_id = "00AA00-000AAA-00AA0A"
  policy_data        = data.google_iam_policy.admin.policy_data
}

data "google_iam_policy" "admin" {
  binding {
    role = "roles/billing.viewer"

    members = [
      "user:jane@example.com",
    ]
  }
}

» Argument Reference

The following arguments are supported:

  • billing_account_id - (Required) The billing account id.

  • policy_data - (Required) The google_iam_policy data source that represents the IAM policy that will be applied to the billing account. This policy overrides any existing policy applied to the billing account.

» Import

$ terraform import google_billing_account_iam_policy.policy billing-account-id