-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Only run the command on modules that have the specified file. #2351
Comments
Hello, References: https://terragrunt.gruntwork.io/docs/reference/cli-options/#terragrunt-include-dir https://github.com/denis256/terragrunt-tests/tree/master/include-dir-dependencies |
Hey @denis256 😄 Thanks for considering my pull request for Terragrunt. While I appreciate the team's suggestion of a pre-calculation option for the list of directories to process, I've tested it out and found that it's not very practical for everyday use. As an alternative, I suggested a feature that only runs a command on modules with a specified file, which I think is a more practical and efficient solution for managing modules and workspaces in Terragrunt. This feature not only simplifies the process of managing modules, but also addresses a common request from the Terragrunt community for a workspace management tool. Plus, my pull request has been tested and is ready to be merged, so I believe it would be a great addition to the tool. If you have any further questions or concerns about my proposal, feel free to let me know. Thanks for your consideration. |
Hey folks, I know this issue was left stale for a while, but I would like to get some clarity on the use of the word "layer" here. Where does that come from? Does something in the docs refer to a "layer" in this way? |
Hey yhakbar, I know this issue has been dormant for a while, but I’d like to get some clarity on the use of the word “layer” in this context. In this case, a “layer” typically refers to a Terragrunt folder. Each “layer” represents a separate folder in your Terragrunt setup, which usually corresponds to different environments, modules, or components. Is there something specific in the Terraform or Terragrunt documentation that clarifies this, or are we just using “layer” as shorthand here? Thanks in advance! |
Currently, we're using the terminology "module":
You can see here (under I think a solution that's a lot more simple in your use-case is to leverage |
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. |
This allows to manage workspaces and vars files easily
I would create
--terragrunt-layer-has-file
argument to filter terragrunt modules.exemple:
with the following terragrunt config:
The text was updated successfully, but these errors were encountered: