sparse-intern-71089
01/21/2020, 7:14 PMwhite-balloon-205
CustomResource
is designed for leaf node resources implemented in an external resource provider. Is that what you want? If you want to create resources inside your program, you can use ComponentResource
.
When you define a CustomResource
, you must put a binary pulumi-provider-<name>
on your PATH that speaks the Pulumi provider gRPC protocol. It will be loaded to handle CRUD operations against the resource you have defined.
More about this proces abstractly here: https://www.pulumi.com/docs/intro/concepts/how-pulumi-works/
Can you share more about what you are trying to do?
(aside - as noted in https://pulumi-community.slack.com/archives/CCWP5TJ5U/p1573603543035700 - which I also just pinned to the channel - there are some very major overhauls of the Go provider happening right now to get ready for GA, so you may see things in flux over the next few weeks)billowy-needle-56870
01/22/2020, 8:56 AMctx.RegisterResource("vendoring:x:customresource", name, true, inputs, opts)
by this one
ctx.RegisterResource("vendoring:x:customresource", name, false, inputs, opts)