chore(jfrog-token): set token description

This defaults to `"coder-workspace-${lower(data.coder_workspace.me.owner)}-${lower(data.coder_workspace.me.name)}"` with the option to overwrite it.
pull/198/head
Muhammad Atif Ali 1 year ago committed by GitHub
parent 7e3743739e
commit 295497a003
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -34,6 +34,12 @@ variable "artifactory_access_token" {
description = "The admin-level access token to use for JFrog."
}
variable "token_description" {
type = string
description = "Free text token description. Useful for filtering and managing tokens."
default = "coder-${lower(data.coder_workspace.me.owner)}-${lower(data.coder_workspace.me.name)}"
}
variable "check_license" {
type = bool
description = "Toggle for pre-flight checking of Artifactory license. Default to `true`."
@ -107,6 +113,7 @@ resource "artifactory_scoped_token" "me" {
scopes = ["applied-permissions/user"]
refreshable = var.refreshable
expires_in = var.expires_in
description = var.token_description
}
data "coder_workspace" "me" {}

Loading…
Cancel
Save