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
- Open repo in GitHub Codespaces.
- Open a terminal in the CodeSpaces IDE.
- Run
make build install
to build and install the provider. - Export your Pinecone API Token:
export PINECONE_API_KEY="0000b000-86cf-4ecf-a753-00000000000"
- Run
make up
to run the example program inexamples/yaml
. - Run
make down
to tear down the example program.
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 locally.
- Run the example program in
examples/yaml
using the locally built provider. - Tear down the example program.
$ cd examples/ts
$ yarn link @pinecone-database/pinecone
$ yarn install
$ pulumi stack init test
$ pulumi up
You now have:
- A
provider/
folder containing the building and implementation logiccmd/pulumi-resource-pinecone/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-xyz/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.