Skip to content

dhoppeIT/terraform-gitlab-user_gpgkey

Repository files navigation

terraform-gitlab-user_gpgkey

Terraform module to manage the following Twingate resources:

  • gitlab_user_gpgkey

Usage

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
}

Requirements

Name Version
terraform >= 1.0
gitlab ~> 18.0

Providers

Name Version
gitlab ~> 18.0

Modules

No modules.

Resources

Name Type
gitlab_user_gpgkey.this resource

Inputs

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

Outputs

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

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.