This message was deleted.
# general
s
This message was deleted.
l
As I understand it, a CustomResource is used for resources created by normal providers. I think what you want is a dynamic provider, which will you can use to create "dynamic" Resources (which aren't any more dynamic than normal resources.. they're just created by dynamic providers 🙂 ). There's more detail here: https://www.pulumi.com/docs/intro/concepts/resources/#dynamicproviders
You can also create a full-on non-dynamic provider if you want to support these sorts of resources in multiple languages. But dynamic providers are easier.
The important idea to start with is that you don't put code that interacts with an external provider (like mongo) into a resource class. It always goes into a provider class.