Hey, is there a way to implement a custom resource...
# general
i
Hey, is there a way to implement a custom resource in Javascript/Typescript (assuming it’ll issue REST APIs for creating/updating/deleting resources)? Would be glad if you can refer to any documentation
w
Yes - this is the
DynamicProvider
that I've noted in a couple other replies this morning. There is not yet great documentation on this - but you can see the APIs here: https://pulumi.io/reference/pkg/nodejs/@pulumi/pulumi/dynamic/#Resource-constructor. And an example here: https://github.com/pulumi/examples/blob/733235b50e8fbe7d7fe76103e09a70b143d9316d/aws-ts-ec2-provisioners/provisioner.ts In general - your implementation of the
create
,
read
,
update
and
delete
can be REST API calls to do the corresponding actions.
i
@white-balloon-205 Thanks!