Sometimes a structured, language-neutral view of Terraform configuration is handy for tooling and review. The HCL to YAML Converter parses pasted .tf text and emits a YAML tree of blocks, labels, attributes and nested blocks.
Paste your HCL, convert, and export the YAML. Invalid HCL is reported clearly.