terraform-aws-modules / terraform-aws-lambda

Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws
Apache License 2.0
886 stars 657 forks source link

filter_criteria not works for source kinesis stream: aws_lambda_event_source_mapping #413

Closed adamyanlina closed 1 year ago

adamyanlina commented 1 year ago

https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/f4861b751c5f89daecc2788069d67baaf4653b75/examples/event-source-mapping/main.tf#L43

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

antonbabenko commented 1 year ago

Here is an example of event sourcing with Kinesis Streams:

https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/eface07424982cea49edd4f6665e05741490b370/examples/event-source-mapping/main.tf#L50-L61

github-actions[bot] commented 1 year ago

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.