davemooreuws / pulumi-supabase

A pulumi resource provider for the Supabase managment API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pulumi Supabase

A native pulumi provider for the Supabase Management API.

Installing

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

Using NPM

npm install @nitric/pulumi-supabase

Using Golang

go get github.com/nitrictech/pulumi-supabase/sdk

Configuring

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>

Supported Resources

  • 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

Supported Languages

  • 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

Examples

For example implementations see here

Development

Prerequisites

Ensure the following tools are installed and present in your $PATH:

Build the provider and install the plugin

$ make build install

This will:

  1. Create the SDK codegen binary and place it in a ./bin folder (gitignored)
  2. Create the provider binary and place it in the ./bin folder (gitignored)
  3. Generate the dotnet, Go, Node, and Python SDKs and place them in the ./sdk folder
  4. Install the provider on your machine.

Test against the example

$ cd examples/simple
$ yarn link @pulumi/supabase
$ yarn install
$ pulumi stack init test
$ pulumi up

About

A pulumi resource provider for the Supabase managment API

License:Apache License 2.0


Languages

Language:Python 42.4%Language:TypeScript 21.4%Language:C# 18.5%Language:Go 15.1%Language:Makefile 2.6%