Skip to content

Commit b60653b

Browse files
committed
Added docs for group_share_group resource
1 parent fe93e3b commit b60653b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/resources/group_share_group.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
```

0 commit comments

Comments
 (0)