Skip to content

Commit acecefb

Browse files
authored
Add CLI output example to Usage of Modules
1 parent adbf7c2 commit acecefb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

website/source/docs/modules/usage.html.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ This purposely is very similar to accessing resource attributes. Instead of mapp
9797

9898
Just like resources, this will create a dependency from the `aws_instance.client` resource to the module, so the module will be built first.
9999

100+
To use module outputs via command line you have to specify the module name before the variable, for example:
101+
102+
```
103+
terraform output -module=consul server_availability_zone
104+
```
105+
100106
## Plans and Graphs
101107

102108
Commands such as the [plan command](/docs/commands/plan.html) and [graph command](/docs/commands/graph.html) will expand modules by default. You can use the `-module-depth` parameter to limit the graph.

0 commit comments

Comments
 (0)