At a glance
Prerequisites
- A Snowflake role that can create roles, users and warehouses, such as
SECURITYADMINandSYSADMIN. - Ownership of the tables End Close should read, or the help of whoever owns them, to turn on change tracking.
- The public key End Close sends you for your account. Email founders@endclose.com to get one.
Create a role, warehouse and user
The following creates a role, a small warehouse that suspends itself when idle, and a service user with both as defaults.SECURITYADMIN creates the role and user, and SYSADMIN creates the warehouse. Replace the key with the public key we sent you.
BEGIN and END lines. A service user can only sign in with its key, so there is no password to manage.
Each sync runs queries on this warehouse, and Snowflake bills you for the credits. An X-Small warehouse that auto-suspends keeps that cost low.
Grant read access
Grant the role read access to each schema End Close should read. ReplaceFINANCE and FINANCE.PAYMENTS with your own database and schema.
SELECT on each table instead of the schema-wide grants.
Turn on change tracking
Change tracking lets End Close read only the rows that changed since the last sync instead of the whole table. The table owner runs this for each table:DATA_RETENTION_TIME_IN_DAYS at 1 or more; 1 is Snowflake’s default. If you’re on Enterprise edition, 7 days gives more room to catch up after an interruption without copying the table again:
SHOW TABLES LIKE 'TRANSACTIONS' IN SCHEMA FINANCE.PAYMENTS and look at the change_tracking column.
Send us the details
Email founders@endclose.com with:
None of these are secret. Your account identifier is the part of your Snowflake URL before
.snowflakecomputing.com.
Snowflake doesn’t enforce primary keys, so name the unique identifier for each table even if one is declared. A row with an empty identifier can’t be synced. Each row also needs an amount, a date and a direction (credit or debit). End Close sets up your Snowflake streams from these tables with you.
If you’d rather send the data yourself, push it to an API data stream. See the API overview.
Revoke access
To disconnect End Close, disable the user. Syncs stop at once.FAQ
Do I send End Close a password or private key?
Do I send End Close a password or private key?
No. End Close generates a key pair for your account, keeps the private key and sends you the public key. You attach the public key to the user, and you can revoke access at any time by disabling the user.
My account uses a network policy. What do I allow?
My account uses a network policy. What do I allow?
Tell us when you send the details. We’ll send you the IP addresses to add to the policy’s allowed list.
Can I connect Snowflake in more than one environment?
Can I connect Snowflake in more than one environment?
Yes. Each environment has its own connection. Records synced into one environment don’t appear in another.
Related
Data streams
How streams hold records and feed reconciliations.
How connections work
Streams, environments and who can connect.