-
-
Notifications
You must be signed in to change notification settings - Fork 997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hclvalidate didn't works on hcl that contains dependency #3587
Comments
Hey @kamontat , Does that dependency have any outputs? Has it been applied yet? If not, you may need to mock those outputs so that the relevant cty values are available for HCL parsing at this phase. Let me know if any of that doesn't make sense! |
@yhakbar the resource has been applied. I can run |
Hmmm... what you're saying makes sense. I'm not sure that there is a way to have the cty values available for HCL parsing here. I know that the To avoid a drawn out back and forth on what's causing the issue here, let's do this:
If If it doesn't work, we might need to write some Go to adjust the behavior of When creating the fixture, avoid using any configurations that rely on AWS access, etc unless necessary. |
Hey @kamontat , do you think you'll have any time to provide that fixture for us to test against? As it stands, we don't have enough information to tackle this issue. |
@yhakbar Unlikely, I'm very busy until ~Jan 2025. |
Describe the bug
When I try to run
hclvalidate
command on terragrunt.hcl that contains dependency, I gotdependency.namespace is object with 1 attribute "inputs"
.When I try to run
hclvalidate
command with--terragrunt-hclvalidate-show-config-path
, I gotjson: cannot unmarshal string into Go struct field CtyJSONOutput.Value of type map[string]interface {}
.Steps To Reproduce
Create
terragrunt.hcl
with dependency field, and run hclvalidate on that directory.Expected behavior
Similar result as run
tofu validate
.Nice to haves
Versions
v0.68.17
v1.8.5
The text was updated successfully, but these errors were encountered: