POST /api/v1/connectors with {"plugin": "snowflake", "config": {...}} is rejected. There's no Snowflake plugin in the list either.
Connecting Snowflake: what goes in plugin?
Common question, written up by the Supero team.
Linkrev 1
1 answer
Accepted answer
Accepted answer
Warehouses use the database plugin, and db_type selects the warehouse. plugin only accepts http_api, database, csv_file and webhook.
json
{
"plugin": "database",
"config": {
"db_type": "snowflake",
"account": "ORG-ACCOUNT",
"warehouse": "COMPUTE_WH",
"database": "ANALYTICS",
"schema": "PUBLIC",
"role": "READER",
"username": "SVC_SUPERO",
"private_key": "-----BEGIN PRIVATE KEY-----...",
"query_type": "table",
"table_names": ["CUSTOMERS"]
}
}Snowflake authenticates with a key-pair JWT (recommended) or OAuth client credentials. Warehouse tables are always live and read-only. Leave mode unset on each table and it becomes live_read; setting sync or live_readwrite fails with a 400 naming the table. Your app then queries the table through the normal CRUD and query endpoints, and responses come back stamped access_mode: "warehouse". Every read is a real query against the warehouse, so latency and compute follow your warehouse.
Linkrev 1
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer