https://pulumi.com logo
#aws
Title
# aws
r

rapid-ability-26103

12/14/2023, 2:20 PM
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

little-cartoon-10569

12/14/2023, 6:41 PM
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) }