-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding rule for terraform_required_version #725
Adding rule for terraform_required_version #725
Conversation
I'm not sure it would be useful to be able to enforce version constraints by this rule. |
Originally the intent was to just enforce that the |
Oops, I may have misunderstood. @DWSR Does this rule meet your needs? Also, please tell us under what situations you find this rule useful. Thank you. |
@wata727 Do you find that this is a valid rule to add to enforce that the Our use case is that we have defined a number of standards when building our TF modules, and ensuring that a version is defined is something we want automate rather than relying on humans to enforce this. |
Yes, a rule that simply enforces the presence of |
Let me change the rule to just do enforcement of the attribute as a starting point and keep this simple. We can continue the discussion of validating the contents on the attribute in #711 |
👍 |
@wata727 Do you think a release could be cut with the last two rules so they could start to be used? Not sure what the cadence is for doing a release. |
I just released v0.15.5. Please try it :) |
This rule will enforce that a required_version constraint be applied to the
terraform
block