Using tflint with --chdir or --recursive fails to call terraform functions like filesha256 or file if the functions reference files using ${path.module}. In addition the tflint command exits with 1 even when --force flag is set.
Is there a way to support ${path.module} in combination with --chdir or --recursive ?
modules/opensearch/dashboards_proxy.tf:2:20: error - Error in function call. Call to function "filesha256" failed: open modules/opensearch/dashboards-proxy/default.conf.template: no such file or directory.
Summary
Using tflint with
--chdir
or--recursive
fails to call terraform functions likefilesha256
orfile
if the functions reference files using${path.module}
. In addition thetflint
command exits with1
even when--force
flag is set.Is there a way to support
${path.module}
in combination with--chdir
or--recursive
?Command
tflint --chdir=$s -f compact --module --force --config=$ROOT_DIR/.tflint.hcl
Terraform Configuration
TFLint Configuration
Output
TFLint Version
0.44.0
Terraform Version
No response
Operating System