{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/5190","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/5190/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/5190/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/5190/events","html_url":"https://github.com/hashicorp/terraform/issues/5190","id":134619820,"number":5190,"title":"-target does not source child modules","user":{"login":"Mongey","id":625787,"avatar_url":"https://avatars1.githubusercontent.com/u/625787?v=4","gravatar_id":"","url":"https://api.github.com/users/Mongey","html_url":"https://github.com/Mongey","followers_url":"https://api.github.com/users/Mongey/followers","following_url":"https://api.github.com/users/Mongey/following{/other_user}","gists_url":"https://api.github.com/users/Mongey/gists{/gist_id}","starred_url":"https://api.github.com/users/Mongey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mongey/subscriptions","organizations_url":"https://api.github.com/users/Mongey/orgs","repos_url":"https://api.github.com/users/Mongey/repos","events_url":"https://api.github.com/users/Mongey/events{/privacy}","received_events_url":"https://api.github.com/users/Mongey/received_events","type":"User","site_admin":false},"labels":[{"id":85946957,"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":127939292,"url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-02-18T15:58:23Z","updated_at":"2017-07-24T15:23:42Z","closed_at":"2017-07-24T15:23:42Z","body":"We recently ran into an this issue as discussed in https://github.com/hashicorp/terraform/pull/1820#issuecomment-181475499 by @apparentlymart \n\n> ... Nested modules don't target in the way I initially expected.\n> \n>   Given the following module tree:\n> - root\n>   - foo\n>     - bar\n>     - baz\n> \n> I initially expected that targeting module.foo would target all of the resources in bar and baz, but it appears that in fact it targets only the resources directly in foo. In my case there was actually nothing in foo except the declarations of bar and baz, so the -target plan appeared to do nothing, just like what is seen in the other examples above.\n> \n> I suspect that this is at least what's going on for @maxenglander, since his dc0 module seems to have various sub-modules within.\n> \n> The workaround for me was to target bar and baz explicitly by writing out their full names. This was easy (if annoying) in my case because I had relatively few nested modules, but it'd be more intuitive/consistent if targeting a module would also implicitly target all of its descendant modules, thus working on an entire sub-tree of the module hierarchy.\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/317458589","html_url":"https://github.com/hashicorp/terraform/issues/5190#issuecomment-317458589","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/5190","id":317458589,"user":{"login":"grubernaut","id":3082319,"avatar_url":"https://avatars2.githubusercontent.com/u/3082319?v=4","gravatar_id":"","url":"https://api.github.com/users/grubernaut","html_url":"https://github.com/grubernaut","followers_url":"https://api.github.com/users/grubernaut/followers","following_url":"https://api.github.com/users/grubernaut/following{/other_user}","gists_url":"https://api.github.com/users/grubernaut/gists{/gist_id}","starred_url":"https://api.github.com/users/grubernaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubernaut/subscriptions","organizations_url":"https://api.github.com/users/grubernaut/orgs","repos_url":"https://api.github.com/users/grubernaut/repos","events_url":"https://api.github.com/users/grubernaut/events{/privacy}","received_events_url":"https://api.github.com/users/grubernaut/received_events","type":"User","site_admin":false},"created_at":"2017-07-24T15:23:42Z","updated_at":"2017-07-24T15:23:42Z","body":"Hey @camjackson we don't have a solid date set for the 0.10 release, but there are a couple beta releases and an RC release out if you wish to test this further! \r\n\r\nLooks like this was fixed in #15314, closing. "}}
{"actor":{"display_login":"grubernaut"}}