python-hcl2 icon indicating copy to clipboard operation
python-hcl2 copied to clipboard

Results 29 python-hcl2 issues
Sort by recently updated
recently updated
newest added

Hello, I have this error when trying to load a terraform output file : ```bash Unexpected token Token(DECIMAL, '0') at line 3, column 75. Expected one of: * __ANON_3 ```...

Hi, I've found an issue when parsing key words: - if - in - for main.tf ```hcl variable "if" { description = "this is fine" } variable "object" { description...

I have found that using `hcl2.loads` on a string that contains a variable that is assigned to a string that is missing the closing double quote `"` can take a...

```shell ❯ cat locals.tf locals { raw_bucket_name = var.bucket != "" ? var.bucket : "stacklet-platform-${md5("${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}")}" } ``` ```python tf_data = hcl2.loads(tf.read_text()) File "/home/kapilt/.pyenv/versions/tfresurrect/lib/python3.9/site-packages/hcl2/api.py", line 18, in loads return hcl2.parse(text +...

This amazing library would often run in a highly secure environment, e.g. various infrastructure automation env. As such, it would be great if `python-hcl2` used no external dependencies to simplify...

The following TF doesn't parse correctly: ``` foo = "true" ? "correct" : "wrong" ``` I would expect it to return: ``` {'foo': ['"true" ? "correct" : "wrong"']} ``` but...

It would be beneficial if `hcl2tojson` supports wild cards out-of-the-box. https://github.com/amplify-education/python-hcl2/blob/b49c46051ba33c7e48fc64295fdaeb5c8ad84139/bin/hcl2tojson#L37 Thanks for the project.

version 4.3.4 example tf file - https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_alert_prometheus_rule_group ```hcl resource "azurerm_monitor_alert_prometheus_rule_group" "example" { name = "example-amprg" location = "West Europe" resource_group_name = azurerm_resource_group.example.name cluster_name = azurerm_kubernetes_cluster.example.name description = "This is the...

I have been trying to create a tool that will crawl all the hcl in our terragrunt directories and ran into an interesting issue. When i update to version 4.3.3...