Skip to content

Commit b40ebd7

Browse files
author
Miguel Hernández
committed
add TFE_VAULT_TOKEN_RENEW env var to vault_config
1 parent 4761b53 commit b40ebd7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

modules/runtime_container_engine_config/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,8 @@ variable "vault_secret_id" {
343343
type = string
344344
description = "Vault secret ID. External Vault only. Required when TFE_VAULT_USE_EXTERNAL is true."
345345
}
346+
347+
variable "vault_token_renew" {
348+
type = number
349+
description = "Vault token renewal period in seconds. Required when TFE_VAULT_USE_EXTERNAL is true."
350+
}

modules/runtime_container_engine_config/vault_config.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ locals {
1212
TFE_VAULT_PATH = var.vault_path
1313
TFE_VAULT_ROLE_ID = var.vault_role_id
1414
TFE_VAULT_SECRET_ID = var.vault_secret_id
15+
TFE_VAULT_TOKEN_RENEW = var.vault_token_renew
1516
}
1617

1718
vault_cluster_address = {
1819
TFE_VAULT_CLUSTER_ADDRESS = join("", ["https://", "$HOST_IP", ":8201"])
1920
}
2021

2122
vault_configuration = local.vault_enable_external ? local.external_vault_config : local.active_active && !local.vault_enable_external ? local.vault_cluster_address : {}
22-
}
23+
}

0 commit comments

Comments
 (0)