| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| var filterName = env.FILTER_NAME | ||
| var filterPattern = env.FILTER_PATTERN |
There was a problem hiding this comment.
I'm not sure if these should also be validated with validateRegex or validated a different way?
Sorry, something went wrong.
| var filterName = process.env.FILTER_NAME | ||
| var filterPattern = process.env.FILTER_PATTERN |
There was a problem hiding this comment.
I'm not sure if these should also be validated with validateRegex or validated a different way?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Related to #165
It looks like filterName and filterPattern are stubbed out to be SumoLGLBDFilter and an empty string respectively in the function createSubscriptionFilter in loggroup-lambda-connector/src/loggroup-lambda-connector.js.
I think this was done because PutSubscriptionFilter requires these arguments.
I would like a way to set filterName and filterPattern to something other than what is hard coded here. I think we can do this the same way LOG_GROUP_PATTERN or LOG_GROUP_TAGS is provided.
My changes are an attempt to move the hard coded values into parameters so they can be overridden if desired.
I would appreciate help and guidance with this.