Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-ai
pulumi-cdk
pulumi-cloud
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by
Title
g
gifted-island-55702
04/30/2021, 7:36 AM
Hi. I'm trying to implement a Pulumi provider using
https://github.com/pulumi/pulumi-provider-boilerplate
template. Is there more detailed documentation how a provider should be implemented? I was searching for the following but I couldn't find it: 1. what is the format of the schema.json file? (
https://github.com/pulumi/pulumi-provider-boilerplate/blob/master/schema.json
) I found
https://github.com/pulumi/pulumi/blob/master/pkg/codegen/schema/schema.go
but it's really difficult to parse it and grasp how it maps to a JSON file 2. how is it possible to implement a single provider managing multiple types of resources? Are the functions like
https://github.com/pulumi/pulumi-provider-boilerplate/blob/master/pkg/provider/provider.go#L120
expected to handle different resource types just by checking the resource type (
https://github.com/pulumi/pulumi-provider-boilerplate/blob/master/pkg/provider/provider.go#L122-L123
)? 3. How can I configure my provider (e.g. provide target URLs and credentials it should use for managing remote resources etc.)? 4. Is it possible to implement resource import to Pulumi state with my custom Pulumi provider? 5. There is a list of functions that are not documented with details why they are needed and they have only some one-line implementations (CheckConfig, DiffConfig, Configure, Invoke, StreamInvoke). Is there a place where I can find answers for my questions?
#general
Join Slack