Skip to content
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

Merged
merged 1 commit into from
Jan 20, 2016

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Jan 20, 2016

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.

@@ -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.
Copy link
Contributor

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?

Copy link
Contributor Author

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 😛

@jen20
Copy link
Contributor

jen20 commented Jan 20, 2016

One minor comment on wording otherwise LGTM.

@phinze phinze force-pushed the phinze/module-depth-new-default branch from 1add85e to de3ce28 Compare January 20, 2016 19:08
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.
@phinze phinze force-pushed the phinze/module-depth-new-default branch from de3ce28 to e67fc0f Compare January 20, 2016 19:58
@stack72
Copy link
Contributor

stack72 commented Jan 20, 2016

@phinze this is awesome! This is going to make using modules a lot more clear :)

👍

phinze added a commit that referenced this pull request Jan 20, 2016
@phinze phinze merged commit fb5eba8 into master Jan 20, 2016
@phinze phinze deleted the phinze/module-depth-new-default branch January 20, 2016 21:40
@ghost
Copy link

ghost commented Apr 28, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants