Overview
Stigg’s integration with Snowflake allows you to export your product catalog, customer, and subscription data directly to your Snowflake account for custom reporting and analysis.Stigg’s native data export integrations are included in the Scale plan, and are also available as an optional add-on to the Growth plan. See Stigg’s pricing for more details.
View the full entity schema
See every table and column exported to your destination, organized by entity group.
Setting up the integration
This guide describes the current connect flow. If your Snowflake connect form instead asks you to generate your own key pair (or offers a username/password option) rather than a Create keys button, your account hasn’t moved to this flow yet — contact Stigg support rather than following the steps below.
Prerequisites
To set up the integration, you’ll need a Snowflake account with the ACCOUNTADMIN role. If you don’t have an account with the ACCOUNTADMIN role, contact your Snowflake administrator to set one up for you.Stigg connects to Snowflake using key-pair authentication only — there’s no username/password option. Stigg generates the key pair for you as part of setup.
1
Enter your connection details
In Stigg, navigate to Integrations > Apps > Snowflake.Enter the following information in the connection form:Click Create keys to have Stigg generate an RSA key pair for this connection, then click Continue.
Role and warehouse aren’t fields in this form — Snowflake uses the user’s
default_role and default_warehouse, which the setup script in the next step sets for you.2
Run the setup script
Stigg generates a setup script based on the details you entered in the previous step, with your new public key already filled in. Copy it and run it in a Snowflake worksheet, using an account with the ACCOUNTADMIN role, with the Run All option (⌘ + Shift + Enter on Mac, CTRL + Shift + Enter on Windows).Once you’ve run the script, click Test & continue. Stigg verifies the connection before proceeding.
This script requires the ACCOUNTADMIN role. The role, warehouse, database, schema, and username shown match the values you entered in the previous step, and your generated public key is already inlined — copy the script exactly as Stigg shows it to you, rather than the version above.
Two things to know about the ownership statement, if you’re syncing into a schema that isn’t brand new:
copy current grantspreserves the privileges your own roles already hold on those tables, so handing ownership to Stigg’s role doesn’t cut your consumers off. If the schema also contains tables of your own, replace that statement with onegrant ownership on table <database>.<schema>.<table> to role $export_role copy current grants;per exported table, so your tables stay yours.- A rebuilt table is a new object, so privileges granted directly on the old table don’t carry over. If your own roles query the exported tables, grant them access at the schema level once —
grant select on future tables in schema <database>.<schema> to role <your_role>;— and every rebuilt table stays readable.
3
Network policy (optional)
Only needed if your Snowflake account restricts access by IP. Run this in Snowflake as ACCOUNTADMIN to let Stigg’s service user in from our data export IP addresses — it limits that user to those addresses and leaves your account-level network policy untouched, so run it against a user dedicated to Stigg. If your account has no IP restrictions, skip the script; the button below tests the connection either way.
If a sync that was previously working starts failing silently after you’ve applied a network policy, and nothing else about your setup changed, check with Stigg support for the current list of export addresses before assuming your policy is misconfigured — it may have changed since this page was last updated.
4
Choose entities to export
Under Configurations, expand the Entities to export section to choose which entity groups to include in the sync. All groups are selected by default.See Exported entities for a description of each group.Click Connect to complete the setup.
Editing connection details
To change this destination’s connection details after you connect, see Editing connection details.Rotating your key pair
You can rotate the key pair Stigg uses to connect to Snowflake without removing the integration. Exports keep using the current key until you save the new one, so syncs carry on throughout, and the next sync after the rotation stays incremental. To run a full sync instead, see After you save. Snowflake lets a user hold two public keys at once (RSA_PUBLIC_KEY and RSA_PUBLIC_KEY_2). You add the new key in the free slot, switch Stigg to it, and then remove the old one.
1
Generate a new key in Stigg
In Stigg, open the Snowflake destination, expand Connection details, and click Edit. Under Authentication, click Rotate key, then Generate new key.Copy the new public key. Stigg shows the full key only once.
2
Assign the new key to your Snowflake user
Find which slot holds the current key. Replace In the result,
STIGG_TRANSFER_USER with the username from the connection details:RSA_PUBLIC_KEY_FP or RSA_PUBLIC_KEY_2_FP has a value for the slot in use. Set the new key in the other slot, as a user with the ACCOUNTADMIN role. Paste the key without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- lines:3
Test and save in Stigg
Back in Stigg, click Test and save. Stigg connects with the new key and saves it only if the connection works.If you see Could not authenticate with Snowflake, the new key isn’t assigned to the user yet. Stigg saves nothing and keeps exporting with the current key, so check the previous step and try again.
4
Remove the old key from Snowflake
After the save, unset the slot that holds the old key:
- Rotate whenever your security policy calls for it.
- Rotating requires write access to integrations. Users with read-only access see only the start of the public key and can’t copy it.
- Stigg generates every key pair itself and keeps the private key, so there’s no private key for you to manage.
- A new key that you don’t save expires after 30 days. Generate another one if you come back later.