terragrunt icon indicating copy to clipboard operation
terragrunt copied to clipboard

Really large input variables breaks Terragrunt values passing to Terraform

Open tavlima opened this issue 2 years ago • 4 comments

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.

tavlima avatar Feb 14 '23 23:02 tavlima

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.

propyless avatar Feb 16 '23 14:02 propyless

Any updates here?

tavlima avatar Nov 16 '23 17:11 tavlima

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.

github-actions[bot] avatar Nov 25 '24 02:11 github-actions[bot]

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.

yhakbar avatar Nov 25 '24 14:11 yhakbar

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.

github-actions[bot] avatar Feb 24 '25 02:02 github-actions[bot]