- Run
make provider
to build the provider - Run
make sdks
to build the sdks - Run
make build
to build the provider and the sdks - Run
make install
to install the provider - Run
make examples
to generate the example programs inexamples/
off of the sourceexamples/yaml
example program. - Run
make up
to run the example program inexamples/yaml
. - Run
make down
to tear down the example program.
$ make build install
This will:
- Create the SDK codegen binary and place it in a
./bin
folder (gitignored) - Create the provider binary and place it in the
./bin
folder (gitignored) - Generate the dotnet, Go, Node, and Python SDKs and place them in the
./sdk
folder - Install the provider on your machine.
- A
provider/
folder containing the building and implementation logiccmd/pulumi-resource-defang/main.go
- holds the provider's implementation.
sdk
- holds the generated code libraries.examples
a folder of Pulumi programs to try locally and/or use in CI.
This repository depends on the pulumi-go-provider library. For more details on building providers, please check the Pulumi Go Provider docs.
Create an example program using the resources defined in your provider, and place it in the examples/
folder.
You can now repeat the steps for build, install, and test.
- Follow the instructions laid out in the deployment templates.
Other resources/examples for implementing providers: