Skip to content

Commit

Permalink
Fixed lint test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal Kumar Gupta committed Feb 13, 2020
1 parent ef6a69e commit 0f51548
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions examples/billing_account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

2 changes: 1 addition & 1 deletion examples/billing_account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ provider "google-beta" {

locals {

bindings={
bindings = {
"roles/billing.viewer" = [
"serviceAccount:billing-iam-test-01@${var.project_id}.iam.gserviceaccount.com",
]
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/billing-iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 0f51548

Please sign in to comment.