首页

Terraform Provider 参考

通过 Terraform Provider 可用的资源和数据源


The Terraform Provider provices access to resources and data sources. 资源是基础设施对象,例如 Supabase 项目,你可以以声明式方式进行配置。数据源是关于你的 Supabase 实例的信息来源。

Provider 设置

使用以下设置来配置你的 Supabase provider 并认证到你的 Supabase 项目。

使用示例

1provider "supabase" {
2    access_token = ""
3    endpoint = ""
4}

详细信息

属性描述类型可选敏感
access_token

Supabase access token

stringtruetrue
endpoint

Supabase API endpoint

stringtrue

资源

你可以使用 Supabase Terraform provider 配置以下资源:

Example usage

1resource "supabase_branch" "<label>" {
2    git_branch = ""
3    parent_project_ref = ""
4    region = ""
5}

Details

属性描述类型必需可选只读
database

Database connection details

true
git_branch

Git branch

stringtrue
id

Branch identifier

stringtrue
parent_project_ref

Parent project ref

stringtrue
region

Database region

stringtrue

数据源

你可以使用 Supabase Terraform provider 读取以下资源:

Example usage

1resource "supabase_apikeys" "all" {
2    project_ref = ""
3}

详细信息

属性描述类型必需可选只读
anon_key

Anonymous API key for the project

stringtrue
project_ref

Project reference ID

stringtrue
service_role_key

Service role API key for the project

stringtrue