python-hcl2
python-hcl2 copied to clipboard
Error: ```Traceback (most recent call last): File "/home/chrobinson.com/pierdavpa/.local/lib/python3.11/site-packages/lark/parsers/lalr_parser.py", line 126, in feed_token action, arg = states[state][token.type] ~~~~~~~~~~~~~^^^^^^^^^^^^ KeyError: '__ANON_3' During handling of the above exception, another exception occurred: Traceback (most...
Current behaviour fails to parse following hcl code: ```hcl resource "confluent_connector" "source" { config_nonsensitive = { "poll.interval.ms" = local.poll_interval * 1000 "salesforce.grant.type" = "JWT_BEARER" } } ``` Logs: ``` Traceback...
With latest version 4.3.3: ``` File "/home/piotrzal/SRC/DEVOPS/modules-manager/docs_venv/lib/python3.8/site-packages/lark/lexer.py", line 598, in next_token raise UnexpectedCharacters(lex_state.text, line_ctr.char_pos, line_ctr.line, line_ctr.column, lark.exceptions.UnexpectedCharacters: No terminal matches '~' in the current parser context, at line 65 col...
Is there any plan to support going backwards (from dict to hcl2)? Something like this: ```python import hcl2 with(open("test.py", 'r')) as file: dict = hcl2.load(file) # Now dict holds a...
Hi, STR: - create the tf file with context: ```hcl resource "aws_api_gateway_rest_api" "example" { body = jsonencode({ security_definitions = { sigv4 = { type = "apiKey" name = "Authorization" in...
## License Policy Violation detected in astroid-2.15.8-py3-none-any.whl Library - astroid-2.15.8-py3-none-any.whl An abstract syntax tree for Python with inference support. Library home page: https://files.pythonhosted.org/packages/16/b6/c0b5394ec6149e0129421f1a762b805e0e583974bc3cd65e3c7ce7c95444/astroid-2.15.8-py3-none-any.whl Path to dependency file: /test-requirements.txt Path to...
## License Policy Violation detected in pylint-2.17.7-py3-none-any.whl Library - pylint-2.17.7-py3-none-any.whl python code static checker Library home page: https://files.pythonhosted.org/packages/b4/49/cea450a83079445a84f16050e571a7c383d3f474b13c5caedfebd4e35def/pylint-2.17.7-py3-none-any.whl Path to dependency file: /test-requirements.txt Path to library: /test-requirements.txt Dependency Hierarchy: -...
I had a parse error that I reduced to ``` resource "aws_instance" "jenkins_controller" { user_data = var.color == "blue" ? 0 : 1 tags = { email = var.assignee ==...
Example code: ``` athena_workgroups = { workgroup = { selected_engine_version = "Athena engine version 3" bytes_scanned_cutoff_per_query = 1e12 # 1 TB = $5 as an upper limit } } ```...
HCL allows for any expression in a string interpolation. This updates the grammar and transformer to match, allowing for arbitrarily-deep nesting.