A Pulumi Provider for Kafka Connect, allows for:
- Creating a connector
- Reading a connector
- Deleting a connector
Prerequisites for this repository are already satisfied by the Pulumi Devcontainer if you are using Github Codespaces, or VSCode.
If you are not using VSCode, you will need to ensure the following tools are installed and present in your $PATH
:
pulumictl
- Go 1.21 or 1.latest
- NodeJS 14.x. We recommend using nvm to manage NodeJS installations.
- Yarn
- TypeScript
- Python (called as
python3
). For recent versions of MacOS, the system-installed version is fine. - .NET
- Create a new Github CodeSpaces environment using this repository.
- Open a terminal in the CodeSpaces environment.
- Run
make build install
to build and install the provider. - Run
make gen_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.
You now have:
- A
provider/
folder containing the building and implementation logiccmd/pulumi-resource-kafkaconnect/main.go
- holds the provider's sample implementation logic.
deployment-templates
- a set of files to help you around deployment and publicationsdk
- holds the generated code libraries created bypulumi-gen-kafkaconnect/main.go
examples
a folder of Pulumi programs to try locally and/or use in CI.- A
Makefile
and thisREADME
.
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.
Other resources/examples for implementing providers: