Skip to content

Commit 4b5e725

Browse files
ivan-pinattigoruhaaknysh
authored
Finer Controls for S3 Events Notifications (#76)
* Create a variable to define the S3 events to trigger the Lambda notifcation AND set the default to ObjectCreated + ObjectRemoved * Update s3_notification_events variable default to [] Co-authored-by: Igor Rodionov <goruha@gmail.com> * Updated datadog_lambda_forwarder module from 1.9.0 to 1.10.0 --------- Co-authored-by: Igor Rodionov <goruha@gmail.com> Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com>
1 parent f935298 commit 4b5e725

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ module "datadog_lambda_forwarder" {
7575
s3_bucket_kms_arns = var.s3_bucket_kms_arns
7676
s3_buckets = var.s3_buckets
7777
s3_buckets_with_prefixes = var.s3_buckets_with_prefixes
78+
s3_notification_events = var.s3_notification_events
7879
security_group_ids = var.security_group_ids
7980
subnet_ids = var.subnet_ids
8081
tracing_config_mode = var.tracing_config_mode

src/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ variable "s3_buckets_with_prefixes" {
100100
default = {}
101101
}
102102

103+
variable "s3_notification_events" {
104+
type = list(string)
105+
description = "List of S3 events to trigger the Lambda notification"
106+
default = []
107+
}
108+
103109
variable "s3_bucket_kms_arns" {
104110
type = list(string)
105111
description = "List of KMS key ARNs for s3 bucket encryption"

0 commit comments

Comments
 (0)