Skip to content

Ignore Regex Function while linting #2127

Closed Answered by bendrucker
kferrone asked this question in Q&A
Discussion options

You must be logged in to vote

No, there is no way to bypass evaluating an expression.

If you're getting an error, it's because you're passing bad input to regex. It has nothing to do with that specific rule, beyond the fact that it references this particular invalid expression. If it were unknown input the function would not get evaluated.

The terraform module itself works totally fine as well, ie validate, plan, and apply all work fine.

If it were called the same way, this cannot be true. So you're somehow calling the module differently via TFLint, e.g., setting different variables, expecting data sources and then falling back on invalid defaults, etc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kferrone
Comment options

Answer selected by kferrone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants