A native pulumi provider for the Supabase Management API.
To install this plugin run:
pulumi plugin install resource supabase ${VERSION} --server https://github.com/nitrictech/pulumi-supabase/releases/download/${VERSION}
Where
${VERSION}
is a tagged released of this resource see: Releases
npm install @nitric/pulumi-supabase
go get github.com/nitrictech/pulumi-supabase/sdk
This provider mostly uses the supabase experimental management API so an experimental access token will be required to deploy resources
The provider can be configured by providing the following environment variable:
SUPABASE_ACCESS_TOKEN=<YOUR_ACCESS_TOKEN>
- Organizations
- Projects
- Buckets
- Secrets
- Database Functions
Additional resource support is planned but if there is anything you'd like to see sooner, let us know in the issues
- Typescript
- Golang
- C# (Generated but not published)
- Python (Generated but not published)
If you would like support for a missing language please raise an issue
For example implementations see here
Ensure the following tools are installed and present in your $PATH
:
pulumictl
- Go 1.17 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
$ 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.
$ cd examples/simple
$ yarn link @pulumi/supabase
$ yarn install
$ pulumi stack init test
$ pulumi up