File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ # gitlab\_ group\_ share\_ group
2
+
3
+ This resource allows you to share a group with another group
4
+
5
+ ## Example Usage
6
+
7
+ ``` hcl
8
+ resource "gitlab_group_share_group" "test" {
9
+ group_id = gitlab_group.foo.id
10
+ share_group_id = gitlab_group.bar.id
11
+ group_access = "guest"
12
+ expires_at = "2099-01-01"
13
+ }
14
+ ```
15
+
16
+ ## Argument Reference
17
+
18
+ The following arguments are supported:
19
+
20
+ * ` group_id ` - (Required) The id of the main group.
21
+
22
+ * ` share_group_id ` - (Required) The id of an additional group which will be shared with the main group.
23
+
24
+ * ` group_access ` - (Required) One of five levels of access to the group.
25
+
26
+ * ` expires_at ` - (Optional) Share expiration date. Format: ` YYYY-MM-DD `
27
+
28
+ ## Import
29
+
30
+ GitLab group shares can be imported using an id made up of ` mainGroupId:shareGroupId ` , e.g.
31
+
32
+ ```
33
+ $ terraform import gitlab_group_share_group.test 12345:1337
34
+ ```
You can’t perform that action at this time.
0 commit comments