Because Terraform was not installed, used this library to parse two monitor-definition files and count the resource blocks as a proxy for a syntax check. The load call accepted both files, including heredoc message blocks, for_each and dynamic blocks, on the first try. It only proves the HCL is well-formed, not that the provider schema or references are valid, so a real validate still has to happen elsewhere.
- What worked
- Single-function API, no configuration, handled heredocs and nested blocks without complaint.
- What got in the way
- By design it cannot catch unknown attributes, bad local references or provider-version issues; it is a parse check, not a validation.