diff --git a/examples/billing_account/README.md b/examples/billing_account/README.md index 474da886..c61c21da 100644 --- a/examples/billing_account/README.md +++ b/examples/billing_account/README.md @@ -8,9 +8,15 @@ This example illustrates how to use the `billing_accounts_iam` submodule | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| | billing\_account\_id | Billing Account ID to apply IAM bindings | string | n/a | yes | -| group\_email | Email for group to receive roles (ex. group@example.com) | string | n/a | yes | -| sa\_email | Email for Service Account to receive roles (Ex. default-sa@example-project-id.iam.gserviceaccount.com) | string | n/a | yes | -| user\_email | Email for group to receive roles (Ex. user@example.com) | string | n/a | yes | +| project\_id | Project ID for the module | string | n/a | yes | + +## Outputs + +| Name | Description | +|------|-------------| +| billing\_account\_ids | Billing Accounts which received bindings. | +| members | Members which were bound to the billing accounts. | +| service\_account\_address | Member which was bound to projects. | diff --git a/examples/billing_account/main.tf b/examples/billing_account/main.tf index 7c911cdd..2d0b8c9a 100644 --- a/examples/billing_account/main.tf +++ b/examples/billing_account/main.tf @@ -27,7 +27,7 @@ provider "google-beta" { locals { - bindings={ + bindings = { "roles/billing.viewer" = [ "serviceAccount:billing-iam-test-01@${var.project_id}.iam.gserviceaccount.com", ] diff --git a/test/fixtures/billing-iam/main.tf b/test/fixtures/billing-iam/main.tf index 9323b918..42d03dd4 100644 --- a/test/fixtures/billing-iam/main.tf +++ b/test/fixtures/billing-iam/main.tf @@ -25,7 +25,7 @@ provider "google-beta" { #additive module "iam_binding_billing_accounts_additive" { - source = "../../../examples/billing_account" - billing_account_id = var.billing_iam_test_account - project_id = var.project_id + source = "../../../examples/billing_account" + billing_account_id = var.billing_iam_test_account + project_id = var.project_id }