Hello everyone!
I am trying to create resources based on filesystem folder hierarchy.
In particular I have a fs hierarchy as follows:
dashboards
├── foldergroup1
│ ├── dashboard1.json
│ └── dashboard2.json
└── foldergroup2
├── dashboard1.json
└── dashboard2.json
So I want a way to create all the grafana folders (foldergroup1 and foldergroup2), and after that their respective dashboards getting the grafanafolders ids.
folder resource: Terraform Registry
dashboards resource:
https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/dashboard