You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variable "foo" {
description = "Foo"
}
variable "bar" {
}
data "aws_prefix_list" "baz" {
name = "baz"
}
output "bak" {
value = "bak"
}
Unless I am mistaken, this should fail on the bar variable block and on the output but it does not (The rule on data does fail, and is there to ensure my syntax is correct).
Am I doing something wrong?
(My actual use case is to enforce naming convention, and the rule is thus [1], but I went for a simpler version in the reproduction example, in the case that __name__ was the issue)
[1]
According to https://stelligent.github.io/config-lint/#/terraform, rules can be applied to outputs and variables.
However, I have not been able to make it work (as far as I can see there is no example provided in the docs, nor in the built-in rules)
Here is a minimal example:
Unless I am mistaken, this should fail on the
bar
variable block and on the output but it does not (The rule ondata
does fail, and is there to ensure my syntax is correct).Am I doing something wrong?
(My actual use case is to enforce naming convention, and the rule is thus [1], but I went for a simpler version in the reproduction example, in the case that
__name__
was the issue)[1]
The text was updated successfully, but these errors were encountered: