terraform/website/docs/commands
Kristin Laemmert 8bab3dd374
command/state list: list resources in nested and expanded modules (#27268)
* command/state list: list resources in nested and expaneded modules

A few distinct bugs fixed in here:

There was a bug in the logic checking if a given module was the child of
the targetAddr, now fixed. That resolved the basic issue where resources
in nested submodules were not listed.

The logic around allowMissing needed some tweaking to allow for empty
modules, as long as those modules had submodules with resources. state
list is the only command using allowMissing with false so this felt safe
to do.

Finally I extended the logic so list would included expanded modules,
which is to say giving module.foo would result in resources from
module.foo[1], module.foo[0], etc.

* update state list docs to show that module filtering includes any nested
modules
2020-12-14 11:07:15 -05:00
..
providers website: Correct formatting for lists in dependency lock docs 2020-12-03 09:16:58 -08:00
state command/state list: list resources in nested and expanded modules (#27268) 2020-12-14 11:07:15 -05:00
workspace Merge pull request #26723 from hashicorp/oct20_language_and_cli_docs 2020-11-11 19:31:05 -08:00
0.12upgrade.html.markdown website: Update all links to {expressions,modules,resources}.html 2020-11-17 16:30:51 -08:00
0.13upgrade.html.markdown website: Restore the docs for "terraform 0.12upgrade" 2020-06-24 14:21:09 -07:00
apply.html.markdown website: Update all Learn crosslinks (#26442) 2020-10-02 11:02:59 -07:00
cli-config.html.markdown website: Fix typo in docs/commands/cli-config (#27038) 2020-12-03 14:30:24 -04:00
console.html.markdown website: Update all links to {expressions,modules,resources}.html 2020-11-17 16:30:51 -08:00
destroy.html.markdown main: new global option -chdir 2020-09-04 15:31:08 -07:00
env.html.markdown website: Reorganize nav sidebars to improve jumps between sections 2019-01-31 16:18:23 -08:00
environment-variables.html.md logging env variable docs 2020-10-23 12:46:32 -04:00
fmt.html.markdown website: More words about "terraform fmt" 2020-11-25 08:03:37 -08:00
force-unlock.html.markdown ADD CLI option position for force-unlock command (#26626) 2020-10-21 18:13:18 -03:00
get.html.markdown Modified terraform get command (#26465) 2020-10-21 18:14:54 -03:00
graph.html.markdown main: new global option -chdir 2020-09-04 15:31:08 -07:00
import.html.md backend: Validate remote backend Terraform version 2020-11-19 13:19:40 -05:00
index.html.markdown website: Add new "glue"/overview pages for CLI and language docs 2020-11-11 19:13:23 -08:00
init.html.markdown Update docs and add warning for -get-plugins 2020-12-07 14:13:52 -05:00
login.html.markdown website: Documentation for the "terraform login" command (#22727) 2020-02-04 11:30:40 -05:00
logout.html.markdown command/logout: Add terraform logout command 2020-02-06 15:00:55 -05:00
output.html.markdown command/output: Raw output mode 2020-12-09 10:10:02 -08:00
plan.html.markdown Merge pull request #21936 from tiny-dancer/patch-1 2020-10-13 16:18:39 -04:00
providers.html.markdown website: Adopt islanded subcommands into unified "docs" (CLI) layout 2020-10-26 18:19:46 -07:00
push.html.markdown website: Delete terraform push docs; replace with note about the remote backend 2019-08-16 15:55:29 -07:00
refresh.html.markdown main: new global option -chdir 2020-09-04 15:31:08 -07:00
show.html.markdown main: new global option -chdir 2020-09-04 15:31:08 -07:00
taint.html.markdown backend: Validate remote backend Terraform version 2020-11-19 13:19:40 -05:00
untaint.html.markdown backend: Validate remote backend Terraform version 2020-11-19 13:19:40 -05:00
validate.html.markdown main: new global option -chdir 2020-09-04 15:31:08 -07:00