Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lambda-promtail: add terraform variable for s3 bucket notification fi…
…lter prefix
  • Loading branch information
milenpankov-bosch committed Dec 12, 2024
commit 8104eaa7bc5b9cba33fea98ce076235ae1c1c77c
2 changes: 1 addition & 1 deletion tools/lambda-promtail/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ resource "aws_s3_bucket_notification" "this" {
lambda_function {
lambda_function_arn = aws_lambda_function.this.arn
events = ["s3:ObjectCreated:*"]
filter_prefix = "AWSLogs/"
filter_prefix = var.filter_prefix
filter_suffix = var.filter_suffix
}

Expand Down
6 changes: 6 additions & 0 deletions tools/lambda-promtail/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ variable "bucket_names" {
default = []
}

variable "filter_prefix" {
type = string
description = "Prefix for S3 bucket notification filter"
default = "AWSLogs/"
}

variable "filter_suffix" {
type = string
description = "Suffix for S3 bucket notification filter"
Expand Down
Loading