File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ Creates a group mapping in Sysdig.
14
14
15
15
## Example Usage
16
16
17
+ ### Regular users
18
+
17
19
``` terraform
18
20
resource "sysdig_group_mapping" "my_group" {
19
21
group_name = "my-group"
@@ -28,14 +30,34 @@ resource "sysdig_group_mapping" "my_group" {
28
30
}
29
31
30
32
```
33
+ This way, we define a group mapping named "my-group" for a user who will have a standard role in two teams.
34
+
35
+ ### Admin users
36
+ If the group members should assume the Sysdig administrator role the mapping should be created this way
37
+
38
+ ``` terraform
39
+ resource "sysdig_group_mapping" "admin" {
40
+ group_name = "admin"
41
+ role = "ROLE_TEAM_MANAGER"
42
+ system_role = "ROLE_CUSTOMER"
43
+
44
+ team_map {
45
+ all_teams = true
46
+ team_ids = []
47
+ }
48
+ }
49
+ ```
50
+ The name doesn’t necessarily have to be “admin,” it’s just an example. The important aspects are the roles and the team_map
31
51
32
52
## Argument Reference
33
53
34
54
* ` group_name ` - (Required) The group name to be mapped.
35
55
36
56
* ` role ` - (Required) The role that is assigned to the users. It can be a standard role or a custom team role ID.
37
57
38
- * ` system_role ` (Optional) The system role that is assigned to the users.
58
+ * ` system_role ` (Optional) The system role that is assigned to the users. The supported values are:
59
+ * ` ROLE_USER ` for regular users (Default if not specified)
60
+ * ` ROLE_CUSTOMER ` for admin users
39
61
40
62
* ` team_map ` - (Required) Block to define team mapping.
41
63
You can’t perform that action at this time.
0 commit comments