terraform-linters / tflint-bundle

DEPRECATED: A Docker image with TFLint and ruleset plugins
MIT License
14 stars 7 forks source link

latest tflint-bundle causes errors with the AWS plugin #46

Closed tomellis91 closed 2 years ago

tomellis91 commented 2 years ago

Description

Hi There, I hope you are doing well, I have noticed a slight issue with a recent commit in tflint-bundle

tflint started erroring with exit 2 after the commit. I have set our image version from latest back to v0.39.3.2 and it is working as expected.

Details

# Local command
tflint --enable-plugin=aws
# From Docker
docker run -it --rm --init --volume /<OBFUSCATED>:/workdir --workdir /workdir --entrypoint /bin/sh ghcr.io/terraform-linters/tflint-bundle:latest -ec $'tflint --enable-plugin=aws\n'

Error Log

09:45:33 [DEBUG] go-plugin@v1.4.5/grpc_stdio.go:139: stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
09:45:33 [INFO]  go-plugin@v1.4.5/client.go:646: plugin process exited: path=/<OBFUSCATED>/.tflint.d/plugins/github.com/terraform-linters/tflint-ruleset-aws/0.17.0/tflint-ruleset-aws pid=37964
09:45:33 [DEBUG] go-plugin@v1.4.5/client.go:461: plugin exited
09:45:33 [DEBUG] go-plugin@v1.4.5/grpc_stdio.go:139: stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
09:45:33 [INFO]  go-plugin@v1.4.5/client.go:646: plugin process exited: path=/usr/local/bin/tflint pid=37965
09:45:33 [DEBUG] go-plugin@v1.4.5/client.go:461: plugin exited
wata727 commented 2 years ago

Exit status 2 indicates that there is an issue. Perhaps you have code that violates the newly enabled Terraform rules. See release notes for v0.40. https://github.com/terraform-linters/tflint/releases/tag/v0.40.0