Connect Snowflake to Anzenna
This guide walks you through creating a Snowflake service account user with the appropriate permissions and connecting it to Anzenna using key-pair authentication.
Prerequisites
- Snowflake administrator access (SECURITYADMIN or equivalent)
- Access to the Anzenna platform
- Access to Snowflake SQL Worksheet
Step-by-Step Instructions
Part 1: Get the Public Key from Anzenna
- In Anzenna, click on Integrations.
- Click the enroll toggle button in the Snowflake card to begin setup.
- Copy the public key shown in Anzenna. This will be used to establish the connection with Snowflake.
Part 2: Create the Anzenna User in Snowflake
- In your Snowflake console, click on SQL Worksheet.
- Paste the following SQL into the worksheet, replacing
<your-public-key>with the key you copied from Anzenna:
create user ANZENNA display_name="Anzenna" timezone='UTC' type=SERVICE default_warehouse="COMPUTE_WH" default_role="SECURITYADMIN" rsa_public_key="<your-public-key>"; grant role SECURITYADMIN to user ANZENNA;
- Click on More run options.
- Click Run All. Use "Run All" rather than "Run" to ensure both the CREATE and GRANT statements execute.
Part 3: (Optional) Set a Network Policy
If your organization requires restricting API access by IP, you can set a network policy for the Anzenna service account.
- Paste the following network policy SQL into the worksheet:
create network policy allow_anzenna_policy ALLOWED_IP_LIST=('35.212.173.22'); alter user ANZENNA set NETWORK_POLICY=allow_anzenna_policy;
- Click on More run options.
- Click Run All.
Part 4: Complete the Connection in Anzenna
- Return to the Anzenna enrollment page and paste your Snowflake account identifier. The format is
<orgname>-<accountname>. See the Snowflake documentation for more details.
- Type ANZENNA as the username.
- Click Connect.
- You should see your Snowflake instance marked as connected.
success
Snowflake is now connected to Anzenna. Anzenna will begin monitoring your Snowflake environment for security insights.