We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abd2aa8 commit a6bd054Copy full SHA for a6bd054
tools/lambda-promtail/main.tf
@@ -281,7 +281,7 @@ resource "aws_s3_bucket_notification" "this" {
281
lambda_function {
282
lambda_function_arn = aws_lambda_function.this.arn
283
events = ["s3:ObjectCreated:*"]
284
- filter_prefix = "AWSLogs/"
+ filter_prefix = var.filter_prefix
285
filter_suffix = var.filter_suffix
286
}
287
tools/lambda-promtail/variables.tf
@@ -16,6 +16,12 @@ variable "bucket_names" {
16
default = []
17
18
19
+variable "filter_prefix" {
20
+ type = string
21
+ description = "Prefix for S3 bucket notification filter"
22
+ default = "AWSLogs/"
23
+}
24
+
25
variable "filter_suffix" {
26
type = string
27
description = "Suffix for S3 bucket notification filter"
0 commit comments