Hi there,
Terraform Version
1.2.6
Affected Resource(s)
- mimirtool_ruler_namespace
Terraform Configuration Files
resource "mimirtool_ruler_namespace" "rules" {
namespace = "rules"
config_yaml = file("rules/rules.yaml")
strict_recording_rule_check = true
}
- record: http_request_duration_seconds_count:rate5m
expr: sum by (job, code) (http_request_duration_seconds_count)
Expected Behavior
What should have happened?
A detailed error message like this log line: https://github.com/grafana/mimir/blob/b85cdae798f0da739497ef04c34497bb99e4a760/pkg/mimirtool/rules/rules.go#L99
And a suggestion that this check can be disable by removing strict_recording_rule_check = true.
Actual Behavior
Only this error message in terraform:
╷
│ Error: namespace contains 1 rules that don't match the requirements
│
│ with mimirtool_ruler_namespace.rules,
│ on main.tf line 16, in resource "mimirtool_ruler_namespace" "rules":
│ 16: resource "mimirtool_ruler_namespace" "rules" {
│
╵
Executing post-apply hook...
Operation failed: failed running terraform apply (exit 1)�
Which is pretty cryptic.
Steps to Reproduce
cf the configuration file above and then, run terraform apply
Hi there,
Terraform Version
1.2.6
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
What should have happened?
A detailed error message like this log line: https://github.com/grafana/mimir/blob/b85cdae798f0da739497ef04c34497bb99e4a760/pkg/mimirtool/rules/rules.go#L99
And a suggestion that this check can be disable by removing
strict_recording_rule_check = true.Actual Behavior
Only this error message in terraform:
Which is pretty cryptic.
Steps to Reproduce
cf the configuration file above and then, run
terraform apply