Skip to content

Latest commit

 

History

History
100 lines (77 loc) · 1.51 KB

File metadata and controls

100 lines (77 loc) · 1.51 KB

gitlab_deploy_key

back

Index

Terraform

terraform {
  required_providers {
    gitlab = ">= 3.6.0"
  }
}

top

Example Usage

module "gitlab_deploy_key" {
  source = "./modules/gitlab/r/gitlab_deploy_key"

  # can_push - (optional) is a type of bool
  can_push = null
  # key - (required) is a type of string
  key = null
  # project - (required) is a type of string
  project = null
  # title - (required) is a type of string
  title = null
}

top

Variables

variable "can_push" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "key" {
  description = "(required)"
  type        = string
}

variable "project" {
  description = "(required)"
  type        = string
}

variable "title" {
  description = "(required)"
  type        = string
}

top

Resource

resource "gitlab_deploy_key" "this" {
  # can_push - (optional) is a type of bool
  can_push = var.can_push
  # key - (required) is a type of string
  key = var.key
  # project - (required) is a type of string
  project = var.project
  # title - (required) is a type of string
  title = var.title
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = gitlab_deploy_key.this.id
}

output "this" {
  value = gitlab_deploy_key.this
}

top