-
Notifications
You must be signed in to change notification settings - Fork 9.5k
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
-target does not source child modules #5190
Comments
Thanks for filing this as a separate issue @Mongey - those long-tail threads have valuable details in them that can get lost in the cracks sometimes. 👍 Agreed that the behavior should definitely be that targeting a module implicitly targets its sub-modules. Treating this as a POLA violation and therefore a bug. |
Any updates on this issue? I can confirm it's present in |
@phinze, I am seeing this behavior for top-level modules as well as child-modules. Should I create a separate issue for the top-level modules escaping |
Some progress here would be great! Having to script terraform to do this sort of thing is certainly an anti-pattern. |
Bug still present in 0.8.7. |
Any chance of getting the fix in #9236 reviewed/merged? |
I've found a workaround in the meantime: by exporting at least one parameter from the affected resources from a lower-level module, and consuming it from the higher-level module, In my case I'm creating TXT records in private DNS of those garbage outputs, but your use case may vary. |
@don-code true, but it only works for the resources that have been referenced from the higher level. All the non-referenced lower level resources are skipped in the plan/apply in my experience. |
Bug still present in 0.9.4. According to #9236 this will "hopefully" be fixed in 0.10. |
Yea, very dangerous bug, we got bitten too. Hope this bug will get some love from the terraform team soon :) |
We just experienced this, too
|
In case anyone missed it, looks like this is resolved in #15314, but it constitutes a breaking change so it won't be released until 0.10. So good news and bad news. Does anyone know when 0.10 is expected to land? |
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! Looks like this was fixed in #15314, closing. |
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. |
We recently ran into an this issue as discussed in #1820 (comment) by @apparentlymart
The text was updated successfully, but these errors were encountered: