-
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
Allow module to depend on another module #21378
Comments
This is something really necessary while launching multiple applications with same resources. Does anyone have any inputs or suggestions for this issue?. |
Prior to 0.8.0, we have to trick Terraform to do it with a combination of outputs and other trickery. But Terraform still doesn't allow a module to depend on another module directly via |
Hi @Raviadonis, Thanks for filing this. We're tracking this feature in the referenced issue #10462. Modules can already be the target of Thanks! |
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. |
Current Terraform Version
Use-cases
I have two different files. (ie.,
module.tf
andresource.tf
)Have written two modules in a single
module.tf
. The second module should run once after the first module ran successfully. Each module has to run a provisioner within thenull_resource
with a different set of variables appropriate to the modules. So thought of making one module is dependent on another module.Attempted Solutions
RESOURCE.TF:
MODULE.TF:
**Note:**Both module using the same
resource.tf
fileOutput
module root: module node_2: depends_on is not a valid argument
References
#10462
The text was updated successfully, but these errors were encountered: