hmm can you expand on issues you're having? I am currently using some abstract component resource classes.
bored-oyster-3147
09/02/2021, 2:09 PM
particuarly because we can't register the child class with the component resource class
what do you mean by this?
m
miniature-leather-70472
09/02/2021, 3:03 PM
the component resource has as a call to the base pulumi componentresource class to registry the componet e.g. : base("Network:CustomApplicationGateway", name, opts), but if the component resource inherits from another component resource, rather than the base pulumi componentResource class, this won't work because it's not calling that base class
b
bored-oyster-3147
09/02/2021, 3:15 PM
sure it can, you just need to pass everything from the derived classes constructor, and interpolate something into the resource type name parameter such that it is different from the parent class
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.