Snowflake
Overview
Stigg’s integration with Snowflake serves a core principal of granting access to raw data, enabling the creation of customized reporting solutions and fostering informed business decision-making.
Stigg’s native integration with Snowflake is included in the Scale plan, and is also available as an optional add-on to the Growth plan. See Stigg’s pricing for more details.
Available data types
Stigg’s integration with Snowflake allows you to sync the following Stigg entities to Snowflake:
-
Product catalog
- Products
- Plans
- Add-ons
- Features
-
Customers
-
Subscriptions
Stigg entity schema
Setting up the integration
Prerequisites
To setup the integration, 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.
Create Stigg entities in Snowflake
In Snowflake, create the relevant Stigg entities (a role, user, warehouse, database and schema) with the OWNERSHIP permission.
Open a new Snowflake worksheet and paste the below script:
Replace <PASSWORD>
with a unique password
The defined password should only have alpha-numeric characters and no special characters
Run the script, while using the “Run All” option (⌘ + Shift + Enter shortcut in Mac or CTRL + Shift + Enter in Windows).
Grant Stigg access to your Snowflake cluster
By default, Snowflake allows users to connect to the service and internal stage from any computer or device. A security administrator (or higher) can use a network policy to allow or deny access to a request based on its origin.
In this step we’ll ensure that Stigg has access to your Snowflake cluster.
In Snowflake, open a new worksheet and run the below command:
If the returned result is empty, all network access is allowed to your cluster, and specifically Stigg can access it - skip to the next section.
If the returned result is not empty, an existing network policy is in place. To ensure that Stigg can access your cluster, update the existing policy and add Stigg’s IP addresses to the allowlist using the below command:
Connect Stigg with Snowflake
In Stigg, navigate to the Integrations > Apps > Snowflake section.
Enter the below information in the opened form:
Field | Description |
---|---|
Account URL | The Snowflake account URL, for example: https://ab12345.us-east-2.aws.snowflakecomputing.com |
Role | The role you specified when creating the Stigg entities in Snowflake, for example: STIGG_ROLE |
Warehouse | The warehouse you specified when creating the Stigg entities in Snowflake, for example: STIGG_WAREHOUSE |
Database | The database you specified when creating the Stigg entities in Snowflake, for example: STIGG_DATABASE |
Schema | The schema you specified when creating the Stigg entities in Snowflake, for example: STIGG_SCHEMA |
Username | The username you specified when creating the Stigg entities in Snowflake, for example: STIGG_USER |
Password | The password you specified when creating the Stigg entities in Snowflake. |
Click “Connect to Snowflake”.
Sync process and frequency
Upon completion of the integration setup, Stigg will perform a full sync of all of the available data types.
Subsequent syncs will be incremental; thereby, significantly reducing the amount of data synchronized on a regular basis.
Stigg syncs data to Snowflake on a daily basis at 12:00am UTC.
Removing the integration
To remove the integration, click on the dotted menu icon and select the “Remove” action.
Confirm the action by clicking on the “Remove” button in the opened modal.