-
-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fixed event source mapping filter criteria #272
Conversation
@@ -262,7 +262,7 @@ resource "aws_lambda_event_source_mapping" "this" { | |||
|
|||
content { | |||
filter { | |||
pattern = lookup(filter_criteria, "pattern", null) | |||
pattern = lookup(each.value["filter_criteria"], "pattern", null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think instead we should change line 261 to
for_each = try(each.value.filter_criteria, [])
which should make 265 work as intended without changes (I think, haven't tried myself yet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bryantbiggs This module is still full of lookup()
expressions, so using try()
is not so critical here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to follow what's done elsewhere in this module. I can change it if you want though.
Thanks @sindrig ! |
### [2.34.1](v2.34.0...v2.34.1) (2022-02-23) ### Bug Fixes * Fixed event source mapping filter criteria ([#272](#272)) ([a5c03fe](a5c03fe))
This PR is included in version 2.34.1 🎉 |
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This closes #271
Description
See #271
How Has This Been Tested?
examples/*
projects