Skip to content

dhoppeIT/terraform-gitlab-deploy_key_enable

Repository files navigation

terraform-gitlab-deploy_key_enable

Terraform module to manage the following GitLab resources:

  • gitlab_deploy_key_enable

Usage

Copy and paste the following code snippet to your Terraform configuration, specify the required variables and run the command terraform init.

module "gitlab_deploy_key" {
  source  = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-deploy-key/local"
  version = "1.0.0"

  project = "example-group-48165/example-project"
  title   = "Example (deploy key)"
}

module "gitlab_deploy_key_enable" {
  source  = "gitlab.com/terraform-child-modules-48151/terraform-gitlab-deploy-key-enable/local"
  version = "1.0.0"


  project = "example-group-48165/example-project-2"
  key_id  = module.gitlab_deploy_key.deploy_key_id
}

Requirements

Name Version
terraform >= 1.0
gitlab ~> 18.0

Providers

Name Version
gitlab ~> 18.0

Modules

No modules.

Resources

Name Type
gitlab_deploy_key_enable.this resource

Inputs

Name Description Type Default Required
can_push Can deploy key push to the project's repository bool false no
key_id The Gitlab key ID for the pre-existing deploy key string n/a yes
project The name or ID of the project to add the deploy key to string n/a yes

Outputs

Name Description
id The ID of this resource
key Deploy key
title Deploy key's title

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.