Snowflake
What Plutus imports
Section titled “What Plutus imports”- Warehouse credit consumption
- Exact dollar cost (with Organization access)
Connecting
Section titled “Connecting”Method: Username & Password (or Key-Pair)
- In Snowflake, create a dedicated user for Plutus to connect with:
CREATE USER plutus_reader PASSWORD = '...' DEFAULT_ROLE = plutus_role;
- Create a role for that user and grant it access to the
SNOWFLAKEdatabase’s usage schema:This gives access to theGRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE plutus_role;ACCOUNT_USAGEschema, which holdsMETERING_HISTORYandWAREHOUSE_METERING_HISTORY— the tables Plutus reads for credit consumption. - In Snowsight, go to Admin → Accounts and copy your account identifier (format:
org-accountorxy12345.us-east-1). - Optional, for exact dollar costs instead of a credit-based estimate: also grant
plutus_role(orORGADMIN) access toORGANIZATION_USAGE.USAGE_IN_CURRENCY_DAILY. This requires your Snowflake Organization to be enabled and is a larger permission grant than the steps above — skip it if your security team won’t allow it. Plutus falls back to a credit-based estimate when this isn’t granted. - In Plutus, enter the account identifier, the username, the password, and a warehouse
name (an X-Small warehouse is enough to run the metering-history query). Account Name is
optional and only needed if your Snowflake organization has multiple accounts — it scopes
ORGANIZATION_USAGEdata to just this one, and you can find it withSELECT CURRENT_ACCOUNT_NAME();. - Optional: enter your negotiated price per credit in USD (from your Snowflake invoice).
Plutus uses this only as the fallback estimate when
ORGANIZATION_USAGEisn’t accessible; it defaults to $3.00 (Standard on-demand) if left blank.
For exact dollar costs, grant ORGANIZATION_USAGE access as described above. Without it, per-warehouse costs are estimated from credit consumption using the price you provide (or a $3.00/credit default).