The gitlab_project_share_group
resource allows to manage the lifecycle of project shared with a group.
Upstream API: GitLab REST API docs
resource "gitlab_project_share_group" "test" {
project = "12345"
group_id = 1337
group_access = "guest"
}
group_id
(Number) The id of the group.project
(String) The ID or URL-encoded path of the project.access_level
(String, Deprecated) The access level to grant the group for the project. Valid values are: no one
, minimal
, guest
, reporter
, developer
, maintainer
, owner
, master
group_access
(String) The access level to grant the group for the project. Valid values are: no one
, minimal
, guest
, reporter
, developer
, maintainer
, owner
, master
id
(String) The ID of this resource.Import is supported using the following syntax:
# GitLab project group shares can be imported using an id made up of `projectid:groupid`, e.g.
terraform import gitlab_project_share_group.test 12345:1337