depends_on cannot be used in a module
Problem
Hi there, Terraform Version 0.8.0 rc1+ Affected Resource(s) module Terraform Configuration Files [code block] Debug Output Error loading Terraform: module root: module legacy_site: depends_on is not a valid parameter module root: module legacy_site: depends_on is not a valid parameter Expected Behavior I am trying to use the new depends_on instead of the above outputs, so I create and provision my app once I know database and caches are built. Actual Behavior Nothing as terraform errors out as above. Steps to Reproduce 1. `terraform apply` References depends_on can reference modules. This allows a resource or output to depend on everything within a module. (#10076)
Error Output
Error loading Terraform: module root: module legacy_site: depends_on is not a valid parameter
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: depends_on cannot be used in a module
Retagging as enhancement, since this isn't broken functionality, its functionality that doesn't exist yet. :)
Trust Score
6 verifications
- 1
Retagging as enhancement, since this isn't broken functionality, its functionali
Retagging as enhancement, since this isn't broken functionality, its functionality that doesn't exist yet. :)
Validation
Resolved in hashicorp/terraform GitHub issue #10462. Community reactions: 19 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep