back
terraform {
required_providers {
gitlab = ">= 3.6.0"
}
}
top
module "gitlab_deploy_token" {
source = "./modules/gitlab/r/gitlab_deploy_token"
# expires_at - (optional) is a type of string
expires_at = null
# group - (optional) is a type of string
group = null
# name - (required) is a type of string
name = null
# project - (optional) is a type of string
project = null
# scopes - (required) is a type of set of string
scopes = []
# username - (optional) is a type of string
username = null
}
top
variable "expires_at" {
description = "(optional)"
type = string
default = null
}
variable "group" {
description = "(optional)"
type = string
default = null
}
variable "name" {
description = "(required)"
type = string
}
variable "project" {
description = "(optional)"
type = string
default = null
}
variable "scopes" {
description = "(required)"
type = set(string)
}
variable "username" {
description = "(optional)"
type = string
default = null
}
top
resource "gitlab_deploy_token" "this" {
# expires_at - (optional) is a type of string
expires_at = var.expires_at
# group - (optional) is a type of string
group = var.group
# name - (required) is a type of string
name = var.name
# project - (optional) is a type of string
project = var.project
# scopes - (required) is a type of set of string
scopes = var.scopes
# username - (optional) is a type of string
username = var.username
}
top
output "id" {
description = "returns a string"
value = gitlab_deploy_token.this.id
}
output "token" {
description = "returns a string"
value = gitlab_deploy_token.this.token
sensitive = true
}
output "username" {
description = "returns a string"
value = gitlab_deploy_token.this.username
}
output "this" {
value = gitlab_deploy_token.this
}
top