hcl
hcl copied to clipboard
HCL is the HashiCorp configuration language.
hclwrite currently supports `github.com/zclconf/go-cty`. The library looks similar with `github.com/hashicorp/go-cty/cty`. However, their types/values cannot be cast into the other library easily. - Is there a difference between these two library,...
In the context of static analysis, there is a use case where you want to visit all expressions in a JSON body. Imagine getting an expression for a string containing...
### HCL Template ```hcl resource "test" "test-policy" { src_security_zone = src_sz dst_security_zone = dst_sz name = "testpolicy" acl_type = "pba" applied_on = "dst" approval_ticket = "20501" ports = [{ approval_ticket...
I've been experimenting with the `hcl2` code for use with Terragrunt, and so far, things have been going well. The parser is intuitive, the error messages are helpful, and the...
Currently, the hclwrite generator has a TODO on rendering HEREDOC. This patch will format multi-line string ending in a newline as a HEREDOC instead.
Hi, I noticed that this package implements a Decode function that decodes from `[]byte` I think it would be good if there was a function like in the std `encoding`...
Previously we just always evaluated both operands of any binary operator and then executed the operator. For the logical operators that was inconsistent with their treatment in several other languages...
I would like to generate the following file. ``` locals { region_vars = read_terragrunt_config(find_in_parent_folders("region.hcl")) region = local.region_vars.locals.region project = "abc-dev" account_number = "443813933915" services = [ "apiserver", ] additional_statements =...
This introduces a new syntax which allows function names to have namespace prefixes, with the different name parts separated by a double-colon `::` as is common in various other C-derived...
This PR is currently WIP. I want to get early feedback before continuing. Is this something the HCL maintainers would accept? (I'm also stuck technically on how to implement the...