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 | string | true | true |
endpoint | Supabase API endpoint | string | true |
资源
你可以使用 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 | string | true | ||
id | Branch identifier | string | true | ||
parent_project_ref | Parent project ref | string | true | ||
region | Database region | string | true |
数据源
你可以使用 Supabase Terraform provider 读取以下资源:
Example usage
1resource "supabase_apikeys" "all" {
2 project_ref = ""
3}
详细信息
属性 | 描述 | 类型 | 必需 | 可选 | 只读 |
---|---|---|---|---|---|
anon_key | Anonymous API key for the project | string | true | ||
project_ref | Project reference ID | string | true | ||
service_role_key | Service role API key for the project | string | true |