terraform-aws-modules/terraform-aws-lambda

filter_criteria not works for source kinesis stream: aws_lambda_event_source_mapping

adamyanlina opened this issue · 2 comments

Here is my filter_criteria:
filter_criteria {
filter {
pattern = jsonencode({
data: {
typeId: [210],
locally: [{"exists": true}]
}
})
}
}

Here is an example of event sourcing with Kinesis Streams:

kinesis = {
event_source_arn = aws_kinesis_stream.this.arn
starting_position = "LATEST"
filter_criteria = {
pattern = jsonencode({
data : {
Temperature : [{ numeric : [">", 0, "<=", 100] }]
Location : ["Oslo"]
}
})
}
}

I'm going to lock this issue because it has been closed for 30 days . This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.