You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,13 @@ module "lambda" {
128
128
batch_size = 50
129
129
starting_position = "LATEST"
130
130
131
+
// Lambda event filtering, see https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
132
+
filter_criteria = {
133
+
pattern = jsonencode({
134
+
eventName : ["MODIFY"]
135
+
})
136
+
}
137
+
131
138
// optionally configure a SNS or SQS destination for discarded batches, required IAM
132
139
// permissions will be added automatically by this module,
133
140
// see https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html
@@ -201,9 +208,9 @@ see [example](examples/with-cloudwatch-logs-subscription) for details
201
208
module "lambda" {
202
209
// see above
203
210
204
-
// disable CloudWatch logs
205
-
// cloudwatch_logs_enabled = false
206
-
211
+
// disable CloudWatch logs
212
+
// cloudwatch_logs_enabled = false
213
+
207
214
cloudwatch_logs_retention_in_days = 14
208
215
209
216
cloudwatch_log_subscription_filters = {
@@ -239,8 +246,6 @@ module "lambda" {
239
246
}
240
247
```
241
248
242
-
243
-
244
249
For `image` deployment packages, the Lambda Insights extension needs to be added to the [container image](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights-Getting-Started-docker.html):
245
250
246
251
```dockerfile
@@ -297,13 +302,13 @@ should migrate to this module as a drop-in replacement to benefit from new featu
Copy file name to clipboardExpand all lines: docs/part1.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,13 @@ module "lambda" {
128
128
batch_size = 50
129
129
starting_position = "LATEST"
130
130
131
+
// Lambda event filtering, see https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
132
+
filter_criteria = {
133
+
pattern = jsonencode({
134
+
eventName : ["MODIFY"]
135
+
})
136
+
}
137
+
131
138
// optionally configure a SNS or SQS destination for discarded batches, required IAM
132
139
// permissions will be added automatically by this module,
133
140
// see https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html
@@ -201,9 +208,9 @@ see [example](examples/with-cloudwatch-logs-subscription) for details
201
208
module "lambda" {
202
209
// see above
203
210
204
-
// disable CloudWatch logs
205
-
// cloudwatch_logs_enabled = false
206
-
211
+
// disable CloudWatch logs
212
+
// cloudwatch_logs_enabled = false
213
+
207
214
cloudwatch_logs_retention_in_days = 14
208
215
209
216
cloudwatch_log_subscription_filters = {
@@ -239,8 +246,6 @@ module "lambda" {
239
246
}
240
247
```
241
248
242
-
243
-
244
249
For `image` deployment packages, the Lambda Insights extension needs to be added to the [container image](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights-Getting-Started-docker.html):
0 commit comments