Read HCL file without evaluation.
- Dominant language
- Go
- Stars
- 5.8k
- Forks
- 657
- Avg merge
- 20h 36m
- Merged PRs (30d)
- 6
Description
Hello,
I want to read terraform/terragrunt configuration files, store them inside of my stricture in golang test and use them for any purpose like generating new files with a different configuration, and do the validation if this file suits the current version of tests.
Right now when I try to read the HCL file when there is something like a "merge" function(terraform) I receive an error like this:
`Function calls not allowed; Functions may not be called here.`
Is there any way to read the such file without evaluation?
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file, test, or entry point is named. Start by reviewing the HCL parsing and evaluation APIs relevant to Terraform and Terragrunt configuration, then determine whether unevaluated function calls can be preserved for later use. Done means the supported approach or required API change is clearly established and covered by a test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, terraform
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100