From 404d53b0edd31bd8856d07c94ee3432a86b6af5f Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 12 Dec 2021 00:22:05 +0700 Subject: [PATCH] fix(external): fix cloudflared credentials format --- external/cloudflare.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external/cloudflare.tf b/external/cloudflare.tf index 7f4600c3..2fa3956a 100644 --- a/external/cloudflare.tf +++ b/external/cloudflare.tf @@ -60,11 +60,11 @@ resource "kubernetes_secret" "cloudflared_credentials" { } data = { - "credentials.json" = base64encode(jsonencode({ - AccountTag = "" # TODO account_id + "credentials.json" = jsonencode({ + AccountTag = var.cloudflare_account_id TunnelName = cloudflare_argo_tunnel.homelab.name TunnelID = cloudflare_argo_tunnel.homelab.id TunnelSecret = base64encode(random_password.tunnel_secret.result) - })) + }) } }