-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Module Cannot be Used in depends_on #18239
Comments
Hi @gpjonesii, I understand the concern, but in this case any solution would have to be produced in close concert with the core engineering team so as to not conflict with planned changes. This would happen independently from any single open issue here. Contrary to what many of the comments suggest, it's not a simple problem, and requires many fundamental changes to be in place before a solution is possible. The foundation for this is in progress, and once that is complete we can proceed with adding this feature. You can read more about the details in issue #17101 |
Hi @jbardin, I do understand that it takes time to plan and coordinate changes and I am perfectly fine with that. However, not being able to use Moreover, not being able to upvote issues like this one does not really help surface and prioritise customer problems in my opinion. I do get the point that you don't want to get spammed with '+1's and upvotes but to me that's what makes customer driven product development. You've got a great product - keep it up! As for the upcoming changes you touched upon - is there an ETA available? Thanks! |
Has anyone come up with a viable workaround for this in the meantime? |
The only viable workaround, which I've found to work, is to
Here, the catch is that you
It's not the best solution in the world but it does the job for now until this issue gets resolved. Please let me know if anyone has a better solution! @jbardin Any updates in the meantime? Would love to see that feature make it into the next release. |
I've been successfully able to work around the missing explicit I really hope this will be solved in the near future. |
@pstadler, where's it exactly falling apart for you? I'm just wondering as the hackaround is working for us alright so far. Is the dependency graph any different from what you would expect? Could it be that there are implicit race conditions due to the intrinsic parallel nature of Terraform. This has caught us out once or twice before. In other news: There may be a glimpse of hope in a recent announcement regarding the upcoming Terraform 0.12 release on https://www.hashicorp.com/blog/terraform-0-1-2-preview. The article mentions |
Wondering what's the official status of this in the soon to be released 0.12 ? |
Still no news about this? I'm using Terraform 0.12.1 and I have the same issues that I had before. |
I'm also facing this issue - I have a module which creates a N copies of a complex set of Azure resources, keeping the creation of N resource groups outside of this module. The first time the job runs, it errors, because the module requires the resource group, and there is no way for me to have this dependency since the resource group variable for the module is interpolated rather than a single data source. |
Common guys, I'm waiting for this feature more than a year. This is a really major feature that needs to be implemented! |
Just ran into this issue as well. So adding a vote for feature here |
Please, solve it |
still open issue , did not got proper resolution |
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. |
Terraform Version
Terraform Configuration Files
Note that the below Terraform configuration file leaves out the actual modules
some-module
andanother-module
for sake of readability.Debug/Crash Output
Expected Behavior
Ideally,
depends_on
for modules would work exactly as for resources, i.e., create an explicit dependency between resources/modules and modules.Actual Behaviour
Terraform exits with above errors
Steps to Reproduce
terraform init
References
A similar report can be found in
The text was updated successfully, but these errors were encountered: