Skip to content

risqcapital/pyhcl2

Repository files navigation

pyhcl2

pyhcl2 is a python based interpreter library for the HCL 2 configuration language used by Terraform and other tools.

Features

  • Parse HCL files or expressions into an AST (Abstract Syntax Tree).
  • Generate topological generations of blocks based on dependencies.
  • Evaluate the AST Nodes with a given set of variables and intrinsic functions.
  • Transform the AST Nodes into a Pydantic Model, with validation.

Credits

This project is based on work by