Terraform module to manage the following Twingate resources:
- gitlab_project_membership
Copy and paste the following code snippet to your Terraform configuration,
specify the required variables and run the command terraform init.
module "gitlab_group" {
source = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-group/local"
version = "1.1.4"
name = "Example (group)"
path = "example-group-48165"
}
module "gitlab_project" {
source = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-project/local"
version = "1.1.5"
name = "example-project"
description = "Example (project)"
namespace_id = module.gitlab_group.id
}
module "gitlab_user" {
source = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-user/local"
version = "1.2.0"
name = "John Doe"
username = "jdoe"
password = "XKvhCJp9MtwTgwRu" # gitleaks:allow
email = "[email protected]"
}
module "gitlab_project_membership" {
source = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-project-membership/local"
version = "1.1.0"
project = module.gitlab_project.id
user_id = module.gitlab_user.id
access_level = "owner"
}| Name | Version |
|---|---|
| terraform | >= 1.0 |
| gitlab | ~> 18.0 |
| Name | Version |
|---|---|
| gitlab | ~> 18.0 |
No modules.
| Name | Type |
|---|---|
| gitlab_project_membership.this | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| access_level | The access level for the member | string |
n/a | yes |
| expires_at | Expiration date for the project membership | string |
null |
no |
| member_role_id | The ID of a custom member role | number |
null |
no |
| project | The ID or URL-encoded path of the project | string |
n/a | yes |
| user_id | The id of the user | number |
n/a | yes |
| Name | Description |
|---|---|
| id | The ID of this resource |
Created and maintained by Dennis Hoppe.
Apache 2 licensed. See LICENSE for full details.