From ee9fb811e2704af845a4f207e6bf8bb487709e93 Mon Sep 17 00:00:00 2001 From: YKharouni Date: Wed, 27 Sep 2023 16:08:59 +0200 Subject: [PATCH] add s3 prefix local variable --- .../quick-deploy/aws/multi-stages/monitoring/locals.tf | 1 + infrastructure/quick-deploy/aws/multi-stages/monitoring/main.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure/quick-deploy/aws/multi-stages/monitoring/locals.tf b/infrastructure/quick-deploy/aws/multi-stages/monitoring/locals.tf index c493b698f..1bb8e5b47 100644 --- a/infrastructure/quick-deploy/aws/multi-stages/monitoring/locals.tf +++ b/infrastructure/quick-deploy/aws/multi-stages/monitoring/locals.tf @@ -94,4 +94,5 @@ locals { s3_enabled = tobool(try(var.monitoring.s3.enabled, false)) s3_name = try(var.monitoring.s3.name, "armonik-logs") s3_region = try(var.monitoring.s3.region, "eu-west-3") + s3_prefix = try(var.monitoring.s3.prefix, "main") } diff --git a/infrastructure/quick-deploy/aws/multi-stages/monitoring/main.tf b/infrastructure/quick-deploy/aws/multi-stages/monitoring/main.tf index a73dde6bb..003f58e63 100644 --- a/infrastructure/quick-deploy/aws/multi-stages/monitoring/main.tf +++ b/infrastructure/quick-deploy/aws/multi-stages/monitoring/main.tf @@ -150,7 +150,7 @@ module "fluent_bit" { s3 = (local.s3_enabled ? { name = local.s3_name region = local.s3_region - prefix = var.monitoring.s3.prefix + prefix = local.s3_prefix enabled = true } : {}) }