Skip to content

Commit

Permalink
add prefix folder to store logs
Browse files Browse the repository at this point in the history
  • Loading branch information
YKharouni committed Sep 27, 2023
1 parent 0aa4ff9 commit a5fc902
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion infrastructure/quick-deploy/aws/all-in-one/monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ module "fluent_bit" {
s3 = (var.s3.enabled ? {
name = var.s3.name
region = var.s3.region
prefix = var.s3.prefix
prefix = local.prefix
enabled = true
} : {})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,4 @@ 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 = local.s3_prefix
prefix = var.monitoring.s3.prefix
enabled = true
} : {})
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ monitoring = {
enabled = true
name = "armonik-logs"
region = "eu-west-3"
prefix = "main"
prefix = local.suffix
arn = "arn:aws:s3:::armonik-logs"
}
fluent_bit = {
Expand Down

0 comments on commit a5fc902

Please sign in to comment.