Terraform module to manage the following GitLab resources:
- gitlab_deploy_key_enable
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
}| Name | Version |
|---|---|
| terraform | >= 1.0 |
| gitlab | ~> 18.0 |
| Name | Version |
|---|---|
| gitlab | ~> 18.0 |
No modules.
| Name | Type |
|---|---|
| gitlab_deploy_key_enable.this | resource |
| 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 |
| Name | Description |
|---|---|
| id | The ID of this resource |
| key | Deploy key |
| title | Deploy key's title |
Created and maintained by Dennis Hoppe.
Apache 2 licensed. See LICENSE for full details.