-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e test fix for iam-service-account module (#1894)
- Loading branch information
1 parent
11206ed
commit da5371b
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,21 +13,21 @@ Note that outputs have no dependencies on IAM bindings to prevent resource cycle | |
```hcl | ||
module "myproject-default-service-accounts" { | ||
source = "./fabric/modules/iam-service-account" | ||
project_id = "myproject" | ||
project_id = var.project_id | ||
name = "vm-default" | ||
# authoritative roles granted *on* the service accounts to other identities | ||
iam = { | ||
"roles/iam.serviceAccountUser" = ["user:[email protected]"] | ||
"roles/iam.serviceAccountUser" = ["group:${var.group_email}"] | ||
} | ||
# non-authoritative roles granted *to* the service accounts on other resources | ||
iam_project_roles = { | ||
"myproject" = [ | ||
"${var.project_id}" = [ | ||
"roles/logging.logWriter", | ||
"roles/monitoring.metricWriter", | ||
] | ||
} | ||
} | ||
# tftest modules=1 resources=4 inventory=basic.yaml | ||
# tftest modules=1 resources=4 inventory=basic.yaml e2e | ||
``` | ||
<!-- TFDOC OPTS files:1 --> | ||
<!-- BEGIN TFDOC --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters