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
Hi @georgivalentinov, it looks like there is a max depth of 4 in the TF model for policies. There is definitely something to improve here, though it's no entire clear exactly what that should be right now:
Improve documentation.
Clearer error when trying to nest past 4.
Grafana API likely exports to TF with >4 nested policies possible.
Terraform Version
1.9.4
Terraform Grafana Provider Version
3.18.2
Grafana Version
11.3.1
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Resource to be accepted withour errors. The same policy structure, defined via Grafana's web UI, is accepted and valid.
Actual Behavior
Terraform's
plan
returns an error:Steps to Reproduce
terraform plan
Important Factoids
This is the structure that Grafana's export to Terraform/HCL produces as well. So passing a similar policy to Terraform yields the that error.
Explicitly/manually adding
group_by
in the deepest policy instance makes the resource valid and Terraform accepts it:Doing one level less nesting also seems to be valid:
References
No response
The text was updated successfully, but these errors were encountered: