When using the desec resource together with other terraform legacy modules i would like to create a dependency, so that DNS resources are created before other resources.
One way to achieve that is to take the output from the desec resource and use it as an input for the other module. Currently with newer versions of terraform and modules containing their own provider config it is not possible to explicitly add a depends_on block:
I get the following error message:
│ Error: Module is incompatible with count, for_each, and depends_on
│
│ on infra.tf line 138, in module "common":
│ 138: depends_on = [module.dns]
│
│ The module at module.common is a legacy module which contains its own local provider configurations, and so calls to it may not use the count, for_each, or depends_on arguments.
│
│ If you also control the module "./modules/common", consider updating this module to instead expect provider configurations to be passed by its caller.
When using the desec resource together with other terraform legacy modules i would like to create a dependency, so that DNS resources are created before other resources.
One way to achieve that is to take the output from the desec resource and use it as an input for the other module. Currently with newer versions of terraform and modules containing their own provider config it is not possible to explicitly add a
depends_on
block:I get the following error message: