-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
command: Change module-depth default to -1 #4763
Conversation
@@ -99,7 +99,7 @@ Options: | |||
This helps when diagnosing cycle errors. | |||
|
|||
-module-depth=n The maximum depth to expand modules. By default this is | |||
zero, which will not expand modules at all. | |||
-1, which will expand modules all modules. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be expand resources within all modules
or similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yep, thanks. Doc sweep got sloppy 😛
One minor comment on wording otherwise LGTM. |
1add85e
to
de3ce28
Compare
This means that terraform commands like `plan`, `apply`, `show`, and `graph` will expand all modules by default. While modules-as-black-boxes is still very true in the conceptual design of modules, feedback on this behavior has consistently suggested that users would prefer to see more verbose output by default. The `-module-depth` flag and env var are retained to allow output to be optionally limited / summarized by these commands.
de3ce28
to
e67fc0f
Compare
@phinze this is awesome! This is going to make using modules a lot more clear :) 👍 |
command: Change module-depth default to -1
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This means that terraform commands like
plan
,apply
,show
, andgraph
will expand all modules by default.While modules-as-black-boxes is still very true in the conceptual design
of modules, feedback on this behavior has consistently suggested that
users would prefer to see more verbose output by default.
The
-module-depth
flag and env var are retained to allow output to beoptionally limited / summarized by these commands.