DependsOn feature on helm chart resource on EKS do...
# aws
r
DependsOn feature on helm chart resource on EKS doesnt work properly, Is it a good practice to use
apply
callback on resource output in order to implement depends on manually?
l
If you mean, to construct resources inside an
apply()
, dependent on the resolved properties of another resource: no, that's not good practice, because what happens inside the apply isn't available to the planning logic in the engine. Adding an apply in the args of a resource is fine, but it probably doesn't make any difference to dependencies. But you could try it to see?
Copy code
const x = new XResource("x", { prop = resource.apply((r) => r) }