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 } : {}) }