Skip to content

Commit

Permalink
add s3 prefix local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
YKharouni committed Sep 27, 2023
1 parent a5fc902 commit ee9fb81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
} : {})
}

0 comments on commit ee9fb81

Please sign in to comment.