From ca0935bf58fc1e5e1f82e8cde8e5bebe01a188fb Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 9 Oct 2023 17:43:18 +0300 Subject: [PATCH] workaround --- vault/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/main.tf b/vault/main.tf index fd29b05..9ca46a9 100644 --- a/vault/main.tf +++ b/vault/main.tf @@ -64,7 +64,7 @@ resource "coder_script" "vault" { VAULT_ADDR : var.vault_addr, VAULT_TOKEN : data.coder_git_auth.vault.access_token, VERSION : var.vault_cli_version, - SECRETS : jsonencode(var.secrets) + SECRETS : replace(jsonencode(var.secrets), "\"", "\\\"") }) run_on_start = true }