why no dependency variable #5134
Replies: 1 comment
-
|
solved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
15:22:27.324 ERROR [staging/k8s-cluster] Error: Unknown variable
15:22:27.324 ERROR [staging/k8s-cluster] on ./staging/k8s-cluster/terragrunt.hcl line 24:
15:22:27.324 ERROR [production/k8s-cluster] Error: Unknown variable
15:22:27.324 ERROR [production/k8s-cluster] on ./production/k8s-cluster/terragrunt.hcl line 23:
15:22:27.324 ERROR [staging/k8s-cluster] 24: disk_pool=dependency.storage.outputs.libvirt_pool.disks_pool
15:22:27.324 ERROR [production/k8s-cluster] 23: disk_pool=dependency.storage.outputs.disks_pool_name
15:22:27.324 ERROR [staging/k8s-cluster] There is no variable named "dependency".
15:22:27.324 ERROR [staging/k8s-cluster] Error: Unknown variable
15:22:27.324 ERROR [staging/k8s-cluster] on ./staging/k8s-cluster/terragrunt.hcl line 25:
15:22:27.324 ERROR [production/k8s-cluster] There is no variable named "dependency".
15:22:27.324 ERROR [production/k8s-cluster] Error: Unknown variable
15:22:27.324 ERROR [staging/k8s-cluster] 25: default_pool=dependency.storage.outputs.libvirt_pool.default_pool
15:22:27.324 ERROR [production/k8s-cluster] on ./production/k8s-cluster/terragrunt.hcl line 24:
15:22:27.325 ERROR [staging/k8s-cluster] There is no variable named "dependency".
15:22:27.325 ERROR [production/k8s-cluster] 24: default_pool=dependency.storage.outputs.default_pool_name
15:22:27.325 ERROR [production/k8s-cluster] There is no variable named "dependency".
15:22:27.326 ERROR Run failed: 4 errors occurred:
./_global/storage-pool/terragrunt.hcl is a dependency of ./production/k8s-cluster/terragrunt.hcl but detected no outputs. Either the target module has not been applied yet, or the module has no outputs.
If this dependency is accessed before the outputs are ready (which can happen during the planning phase of an unapplied stack), consider using mock_outputs:
dependency "storage" {
config_path = "../../_global/storage-pool"
}
For more info, see:
https://terragrunt.gruntwork.io/docs/features/stacks/#unapplied-dependency-and-mock-outputs
If you do not require outputs from your dependency, consider using the dependencies block instead:
https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#dependencies
./production/k8s-cluster/terragrunt.hcl:23,18-28: Unknown variable; There is no variable named "dependency"., and 1 other diagnostic(s)
./_global/storage-pool/terragrunt.hcl is a dependency of ./staging/k8s-cluster/terragrunt.hcl but detected no outputs. Either the target module has not been applied yet, or the module has no outputs.
If this dependency is accessed before the outputs are ready (which can happen during the planning phase of an unapplied stack), consider using mock_outputs:
dependency "storage" {
config_path = "../../_global/storage-pool"
}
For more info, see:
https://terragrunt.gruntwork.io/docs/features/stacks/#unapplied-dependency-and-mock-outputs
If you do not require outputs from your dependency, consider using the dependencies block instead:
https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#dependencies
./staging/k8s-cluster/terragrunt.hcl:24,18-28: Unknown variable; There is no variable named "dependency"., and 1 other diagnostic(s)
❯❯ Run Summary 4 units 2s
────────────────────────────
Succeeded 2
Failed 2
Beta Was this translation helpful? Give feedback.
All reactions