pyhcl2
is a python based interpreter library for the HCL 2 configuration language used by Terraform and other tools.
- 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.
This project is based on work by