Hi <@U02J3T6A8LB> and team, I’m writing (still) Dy...
# general
c
Hi @echoing-dinner-19531 and team, I’m writing (still) Dynamic Resource Provider and I have question. If I have 5 function related to create Users, Project, Database, Settings, Audit which equal to 5 different resource then how many class ResourceProvider I need write? 1 or 5? because of afaik each ResourceProvider will have different create/update/delete function =.=!
e
Yeh for dynamic providers you need a provider per resource type. This could be redesigned to not need this, but it would be a breaking overhaul of what dynamic providers look like.
c
thank you very much!
h
oh, reading through the docs, I just assumed it was supposed to switch logic based on the type of thing it got
c
do you have any example or link to document @hundreds-gpu-71155?
h
just glancing at https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.dynamic.ResourceProvider and https://www.pulumi.com/docs/concepts/resources/dynamic-providers/, but it looks like
create()
doesn't actually get told what kind of thing it's supposed to be doing
e
doesn't actually get told what kind of thing it's supposed to be doing
Yup. These weren't designed with multiple resource types in mind. The provider protocol has enough information on it that it would be doable, but it would pretty much need to be dynamic provider v2 to expose that info.