Terragrunt/terraform: fork/exec argument list too long
When terragrunt is relaying information to input variables it's happening via environment variables. Depending on the size of the content of the variable it might exceed your OS limits. This is independent of your shell.
A possible workaround is to use a generated file to load the input instead of the env variable, e.g.
# WORKAROUND
# the variable my_huge_input cannot be loaded as part of the inputs
generate "dependencies" {
path = "dependencies.auto.tfvars"
if_exists = "overwrite_terragrunt"
contents = <<EOF
my_input = ${jsonencode(dependency.my_huge_input)}
EOF
}
See the following issue for further discussion Show archive.org snapshot .
Related cards:
HowTo: Fix nginx not reloading with long gzip_types lines
When using many or very long entries of MIME-types that shoudl be gziped in gzip_types
directives in nginx
you might not be able to successfully reload the service and get this error message instead:
nginx: [emerg] could not build the tes...
HowTo: List packages in an apt repository
When you're using a third party repository on your Ubuntu or Debian system and need to find out which packages are available in this repo and which versions, you can consult the local apt
cache.
In /var/lib/apt/lists
you'll find a lot of `*_P...
Listing sizes in AWS S3 Buckets
Getting the whole bucket size
aws s3 ls s3://$BUCKETNAME/ --recursive --human-readable --summarize | tail -n2
Tail is used because otherwise all files will be printed on screen (but you may want that for some reason).
Getting...
GitLab CI: debugging failed jobs
It happens from time to time that a job in a GitLab pipeline fails. Sometimes, however, the error message is too meaningless to be helpful.
Example:
Running with gitlab-runner 16.7.0 (102c81ba)
on <host>, system ID: <ID>
Resolving secr...
Delete specific Redis-DBs
To delete a specific redis-DB you need to use the FLUSHDB
-command in combination with the SELECT
-command. For more information have a look at the documentation for FLUSHDB and [SELECT](https://redis.io/com...
How to Protect container images with production tag from ECR lifecycle rules
If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple ECR Lifecycle Rule that deletes images e.g. 7 days after they have been pushed to the registry.
If you however want to _...
Useful PostgreSQL commands
on the bash (issued as postgres user)
Start/Stop/Restart PostgreSQL
pg_ctl -D $configdir start|stop|restart
Start/Stop/Restart the corresponding PostgreSQL using the given configuration directory. The configuration directory sh...
HowTo: let puppet agent run from different branch
This is not encouraged because this change is easily forgotten. We recommend using this only if you know what you are doing.
Should you be in need to run puppet
from a branch (called environment in puppet land) other than production
for a...
GitLab: Rails Console Tasks
Sometimes you might need to do some task in GitLab which would be tedious if you'd have to do it via the Browser.
There is also an API which you could maybe use!
You can connect to the GitLab internal Rails wit...
Use Terraform grouping mode like Golang's Ellipsis expression
The terraform documentation states the ...
syntax as (grouping mode*. See: Grouping-Results).
But this seems not the be the whole truth. Instead the ...
sy...