Skip to content

Commit 2b2cdbd

Browse files
authored
🧹 document the roles for the iam binding resource (#329)
1 parent 709aeeb commit 2b2cdbd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/resources/iam_binding.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ resource "mondoo_iam_binding" "team_permissions" {
3838

3939
- `identity_mrn` (String) MRN of the identity principal (team, user, or service account) to grant roles to.
4040
- `resource_mrn` (String) MRN of the resource (organization, space, workspace, etc.) to grant access to.
41-
- `roles` (List of String) List of role MRNs to assign to the identity on the resource.
41+
- `roles` (List of String) List of role MRNs to assign to the identity on the resource. Possible roles: ["//iam.api.mondoo.app/roles/integrations-manager", "//iam.api.mondoo.app/roles/sla-manager", "//iam.api.mondoo.app/roles/policy-manager", "//iam.api.mondoo.app/roles/policy-editor","//iam.api.mondoo.app/roles/ticket-manager","//iam.api.mondoo.app/roles/ticket-creator", "//iam.api.mondoo.app/roles/exceptions-requester", "//iam.api.mondoo.app/roles/query-pack-manager", "//iam.api.mondoo.app/roles/query-pack-editor", "//iam.api.mondoo.app/roles/viewer", "//iam.api.mondoo.app/roles/editor", "//iam.api.mondoo.app/roles/owner" ]

‎internal/provider/iam_binding_resource.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ resource "mondoo_iam_binding" "team_permissions" {
7070
},
7171
},
7272
"roles": schema.ListAttribute{
73-
MarkdownDescription: "List of role MRNs to assign to the identity on the resource.",
73+
MarkdownDescription: `List of role MRNs to assign to the identity on the resource. Possible roles: ["//iam.api.mondoo.app/roles/integrations-manager", "//iam.api.mondoo.app/roles/sla-manager", "//iam.api.mondoo.app/roles/policy-manager", "//iam.api.mondoo.app/roles/policy-editor","//iam.api.mondoo.app/roles/ticket-manager","//iam.api.mondoo.app/roles/ticket-creator", "//iam.api.mondoo.app/roles/exceptions-requester", "//iam.api.mondoo.app/roles/query-pack-manager", "//iam.api.mondoo.app/roles/query-pack-editor", "//iam.api.mondoo.app/roles/viewer", "//iam.api.mondoo.app/roles/editor", "//iam.api.mondoo.app/roles/owner" ]`,
7474
Required: true,
7575
ElementType: types.StringType,
7676
},

0 commit comments

Comments
 (0)