tm_hcldecode Function
The tm_hcldecode function parses a given string as HCL file content and returns a decoded Terramate value. Currently, the function does not support blocks, and the decoding process will fail if blocks are present in the input string.
Examples
tm_hcldecode(<<-EOF
name = "my-instance"
size = 10
EOF)
{
name = "my-instance"
size = 10
}Related Functions
tm_hclencodeperforms the reverse operation, encoding an object or map into an HCL file content string.