You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I realized that when attempting to delete a terragrunt module by setting the source to /dev/null, this script will fail with the following error.
Error: Failed to read module directory: Module directory /dev/null does not exist or cannot be read.
Which is not technically wrong since that is a black hole and you can't read from it.
The problem is, because terragrunt doesn't have a good way to detect destroy attempts when deleting a directory, we need to do this kind of hack. gruntwork-io/terragrunt#433 (comment)
While uncommon, when I need to mass destroy resources with this method, atlantis.yaml can't be generated due to the previous error.
Would be nice if you could detect that it's targeting /dev/null and in those cases, maybe skip and move on?
Don't have specific solutions in mind so happy to get suggestions too.
The text was updated successfully, but these errors were encountered:
Have you tried pointing the source to any other directory other than /dev/null? That should work. I use this to toggle deletion / destruction of a module, where get_path_to_repo_root() doesn't contain any TF module:
Hi, I realized that when attempting to delete a terragrunt module by setting the source to
/dev/null
, this script will fail with the following error.Which is not technically wrong since that is a black hole and you can't read from it.
The problem is, because terragrunt doesn't have a good way to detect destroy attempts when deleting a directory, we need to do this kind of hack.
gruntwork-io/terragrunt#433 (comment)
While uncommon, when I need to mass destroy resources with this method,
atlantis.yaml
can't be generated due to the previous error.Would be nice if you could detect that it's targeting
/dev/null
and in those cases, maybe skip and move on?Don't have specific solutions in mind so happy to get suggestions too.
The text was updated successfully, but these errors were encountered: