https://pulumi.com logo
h

handsome-knife-41547

09/06/2023, 12:04 AM
if I set a custom timeout on a parent resource does it apply to all child resources?
l

little-cartoon-10569

09/06/2023, 2:11 AM
How do you set a timeout on a resource? Is it a property of the provider? Resources do inherit the opts of their parents, if not explicitly override. So if the timeout is a provider parameter, then yes, it will apply to child resources.
h

handsome-knife-41547

09/07/2023, 4:26 PM
l

little-cartoon-10569

09/07/2023, 9:52 PM
Right, so it's an opt. The general recommendation (or at least, my general recommendation) is to set the opts of all child resources to be the opts of the parent resources, unless you know better. As the docs you linked say, ComponentResource doesn't honour this, but you explicitly set the child opts this way, then each of the children will have the custom timeout. Which unfortunately means you could end up waiting (custom timeout x number of child resources) for everything to time out... but that's why I said "unless you know better" 🙂
h

handsome-knife-41547

09/07/2023, 9:53 PM
I was afraid you'd say that. So much code to go through
Thank you!
l

little-cartoon-10569

09/07/2023, 9:59 PM
The downside of configurability is.. having to configure 😞