Terraform Provider reference
Resources and data sources available through the Terraform Provider
The Terraform Provider provices access to resources and data sources. Resources are infrastructure objects, such as a Supabase project, that you can declaratively configure. Data sources are sources of information about your Supabase instances.
Provider settings
Use these settings to configure your Supabase provider and authenticate to your Supabase project.
Example usage
1provider "supabase" {
2 access_token = ""
3 endpoint = ""
4}
Details
Attribute | Description | Type | Optional | Sensitive |
---|---|---|---|---|
access_token | Supabase access token | string | true | true |
endpoint | Supabase API endpoint | string | true |
Resources
You can configure these resources using the Supabase Terraform provider:
Example usage
1resource "supabase_branch" "<label>" {
2 git_branch = ""
3 parent_project_ref = ""
4 region = ""
5}
Details
Attribute | Description | Type | Required | Optional | Read-only |
---|---|---|---|---|---|
database | Database connection details | true | |||
git_branch | Git branch | string | true | ||
id | Branch identifier | string | true | ||
parent_project_ref | Parent project ref | string | true | ||
region | Database region | string | true |
Data sources
You can read these resources using the Supabase Terraform provider:
Example usage
1resource "supabase_branch" "all" {
2 parent_project_ref = ""
3}
Details
Attribute | Description | Type | Required | Optional | Read-only |
---|---|---|---|---|---|
branches | Branch databases | true | |||
parent_project_ref | Parent project ref | string | true |