Skip to content

Commit f26bf6c

Browse files
author
Jordan Caussat
committed
Update doc: add project_shared_with_groups option
1 parent ca2b6d7 commit f26bf6c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

website/docs/r/project.html.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ The following arguments are supported:
5050
Valid values are `private`, `internal`, `public`.
5151
Repositories are created as private by default.
5252

53+
* `shared_with_groups` - (Optional) Enable sharing the project with a list of groups (maps).
54+
* `group_id` - (Required) Group id of the group you want to share the project with.
55+
* `group_access_level` - (Optional) Group's sharing permissions. See [group members permission][group_members_permissions] for more info.
56+
Valid values are `guest`, `reporter`, `developer`, `master`.
57+
5358
## Attributes Reference
5459

5560
The following additional attributes are exported:
@@ -66,6 +71,9 @@ The following additional attributes are exported:
6671

6772
* `runners_token` - Registration token to use during runner setup.
6873

74+
* `shared_with_groups` - List of the groups the project is shared with.
75+
* `group_name` - Group's name.
76+
6977
## Importing projects
7078

7179
You can import a project state using `terraform import <resource> <id>`. The
@@ -75,3 +83,4 @@ its `:id` value, so for example:
7583
terraform import gitlab_project.example richardc/example
7684

7785
[get_single_project]: https://docs.gitlab.com/ee/api/projects.html#get-single-project
86+
[group_members_permissions]: https://docs.gitlab.com/ce/user/permissions.html#group-members-permissions

0 commit comments

Comments
 (0)