mirror of https://github.com/hashicorp/terraform
Providers themselves don't support depends_on, and therefor a module with providers cannot use depends_on.pull/25345/head
parent
41befeaa37
commit
3f22bbf8d5
@ -0,0 +1,24 @@
|
||||
{
|
||||
"Modules": [
|
||||
{
|
||||
"Key": "",
|
||||
"Source": "",
|
||||
"Dir": "testdata/expand-modules/nested-provider"
|
||||
},
|
||||
{
|
||||
"Key": "child",
|
||||
"Source": "./child",
|
||||
"Dir": "testdata/expand-modules/nested-provider/child"
|
||||
},
|
||||
{
|
||||
"Key": "child2",
|
||||
"Source": "./child2",
|
||||
"Dir": "testdata/expand-modules/nested-provider/child2"
|
||||
},
|
||||
{
|
||||
"Key": "child.child2",
|
||||
"Source": "../child2",
|
||||
"Dir": "testdata/expand-modules/nested-provider/child2"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
module "child2" {
|
||||
source = "../child2"
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
provider "aws" {
|
||||
}
|
||||
|
||||
output "my_output" {
|
||||
value = "my output"
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
module "child" {
|
||||
source = "./child"
|
||||
depends_on = [test_resource.a]
|
||||
}
|
||||
|
||||
resource "test_resource" "a" {
|
||||
}
|
||||
Loading…
Reference in new issue