From 8616a5489fd67ab373c5596965fd8525dc570a20 Mon Sep 17 00:00:00 2001 From: Eytan Naim Date: Thu, 16 Nov 2023 16:40:53 +0200 Subject: [PATCH] Enabled stats [skip actions] --- modules/null/statistics/main.tf | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/null/statistics/main.tf b/modules/null/statistics/main.tf index 738c09e28..4704c02b8 100644 --- a/modules/null/statistics/main.tf +++ b/modules/null/statistics/main.tf @@ -1,13 +1,11 @@ locals { - host = "https://etnoe723me.execute-api.us-east-1.amazonaws.com" - resource = "dsfkit_stats_dev" - stage = "dev" - url = join("/", [local.host, local.stage, local.resource]) - header_value = base64decode("amxEU0NhRWwyTTc2NkZVWUtVTFhlNUxyRVpBYVR4akhHd0dGYkExYg==") + host = "https://stats.dsfkitimperva.com" + resource = "dsfkit_usage_stats" + url = join("/", [local.host, local.resource]) id = var.id == null ? random_uuid.stats_id.result : var.id - enable_statistics = false + enable_statistics = true } resource "random_uuid" "stats_id" { @@ -35,7 +33,6 @@ resource "null_resource" "curl_request" { command = <<-EOT curl -X POST \ -H "Content-Type: application/json" \ - -H "x-api-key: ${local.header_value}" \ --data '${local.payload}' \ '${local.url}' || true EOT