Skip to content

Commit fee1b05

Browse files
author
dmytro_velychko3
committed
fix: create variable pat_token_lifetime_seconds
1 parent 90194ac commit fee1b05

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

permissions.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
locals {
2-
secret_scope_object = {
3-
value = [for param in var.secret_scope : {
4-
scope_name = databricks_secret_scope.this[param.scope_name].name
5-
acl = param.acl
6-
} if param.acl != null]
2+
secret_scope_object = {
3+
value = [for param in var.secret_scope : {
4+
scope_name = databricks_secret_scope.this[param.scope_name].name
5+
acl = param.acl
6+
} if param.acl != null]
77
}
88

99
secrets_acl_objects_list = flatten([for param in local.secret_scope_object : [

variables.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ variable "workspace_admins" {
4545

4646
variable "iam" {
4747
type = map(object({
48-
user = optional(list(string))
49-
service_principal = optional(list(string))
50-
entitlements = optional(list(string))
48+
user = optional(list(string))
49+
service_principal = optional(list(string))
50+
entitlements = optional(list(string))
5151
}))
5252
description = "Used to create workspace group. Map of group name and its parameters, such as users and service principals added to the group. Also possible to configure group entitlements."
5353
default = {}
@@ -246,3 +246,9 @@ variable "clusters" {
246246
description = "Set of objects with parameters to configure Databricks clusters and assign permissions to it for certain custom groups"
247247
default = []
248248
}
249+
250+
variable "pat_token_lifetime_seconds" {
251+
type = number
252+
description = "The lifetime of the token, in seconds. If no lifetime is specified, the token remains valid indefinitely"
253+
default = 315569520
254+
}

0 commit comments

Comments
 (0)