https://pulumi.com logo
#general
Title
# general
i

incalculable-diamond-5088

04/17/2019, 3:59 PM
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

white-balloon-205

04/17/2019, 4:01 PM
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

incalculable-diamond-5088

04/17/2019, 4:05 PM
@white-balloon-205 Thanks!