Could someone please explain the difference betwee...
# general
s
Could someone please explain the difference between calling pulumi.invokeOptions vs pulumi.resourceOptions on a given resource. They seem to be interchangeable but in some scenarios resourceOptions gives a merge exception. Iā€™m not sure where one should be used over the other? thanks in advance šŸ™
e
invokeOptions are for invokes, resourceOptions are for resources. We recently tightened up the Python runtime validation to error if the wrong one was passed in.
šŸ‘ 1
s
So a get_() type function i presume is considered an invoke and a resource creation is a resource?
e
Some gets are "resource reads" which take resource options, but yes a lot of get and lookup calls are invokes. The type signuatures for these should say which one they take. e.g. LoadBalancer.get is a read which takes resource options, but get_load_balancer is an invoke that takes invoke options.
šŸ™Œ 1
āœ… 1