Replies: 3 comments 1 reply
-
Given that $ terraform validate
Success! The configuration is valid. $ terraform plan
╷
│ Error: No configuration files
│
│ Plan requires configuration to be present. Planning without a configuration
│ would mark everything for destruction, which is normally not what is desired.
│ If you would like to destroy everything, run plan with the -destroy option.
│ Otherwise, create a Terraform configuration file (.tf file) and try again. |
Beta Was this translation helpful? Give feedback.
-
During the CI/CD workflow, |
Beta Was this translation helpful? Give feedback.
-
How about a verbosity option to show the files that were inspected? |
Beta Was this translation helpful? Give feedback.
-
Introduction
While running in CI/CD,
tflint
could be accidentally ran against the wrong directory. If the wrong directory contains no Terraform files, this returns a success. Success in CI/CD is rolled up into a green check mark and isn't caught right away.Proposal
tflint
should produce an error if no files match. Possibly with a command line flag if backwards compatibility is needed.I would be happy to write a PR if this proposal makes sense.
Beta Was this translation helpful? Give feedback.
All reactions