Terraform module to manage the following Twingate resources:
- gitlab_user_gpgkey
Copy and paste the following code snippet to your Terraform configuration,
specify the required variables and run the command terraform init.
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 = "john.doe@example.com"
}
module "gitlab_user_gpgkey" {
source = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-user-gpgkey/local"
version = "1.0.0"
key = file("${path.module}/public-key.asc")
user_id = module.gitlab_user.id
}| Name | Version |
|---|---|
| terraform | >= 1.0 |
| gitlab | ~> 18.0 |
| Name | Version |
|---|---|
| gitlab | ~> 18.0 |
No modules.
| Name | Type |
|---|---|
| gitlab_user_gpgkey.this | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| key | The armored GPG public key | string |
n/a | yes |
| user_id | The ID of the user to add the GPG key to | number |
null |
no |
| Name | Description |
|---|---|
| created_at | The time when this key was created in GitLab |
| id | The ID of this resource |
| key_id | The ID of the GPG key |
Created and maintained by Dennis Hoppe.
Apache 2 licensed. See LICENSE for full details.