Really large input variables breaks Terragrunt values passing to Terraform
Due to the standard way TG passes the input values to TF, really large input variables hit the OS ARG_MAX (or MAX_ARG_STRLEN, not sure) limits.
Ideally, TG should automatically handle these scenarios, either by switching to -var-file based on the input size or by defaulting to that altogether.
Take a look here for a workaround
https://github.com/gruntwork-io/terragrunt/issues/2452 https://github.com/gruntwork-io/terragrunt/issues/2132
I've been hitting the same issue recently, but what I've done is that I just pass everything to the generate and any dependencies etc I have in the terragrunt.hcl file, I pass those to the input{} block.
Any updates here?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.
Hey @tavlima , could you provide a fixture that reliably reproduces this issue?
You can do that by either creating a public repository under your account that has a fixture to reproduce this issue, or by submitting a pull request with your new fixture here.
Please also propose some design considerations like what you think the behavior should look like. Are you thinking this is a new flag? New HCL configuration? etc. Someone reading your proposal should know exactly what solution would implement a fix to the problem.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.