- Programmatic access token
Prepare in Snowflake SQL
Create or choose the Snowflake role and warehouse that Flow automations should use. The role and warehouse names in Flow are customer-owned Snowflake names. Example names such asFlow automation role and Flow automation warehouse are placeholders, not required names.Create a Snowflake user, or use an existing service user, for Flow automations. Grant the role to that user before you create the programmatic access token. Use Snowflake’s ALTER USER command reference for adding programmatic access tokens for the token creation syntax. Snowflake may require a network policy that allows Flow requests before the token can authenticate. See Snowflake programmatic access token authentication and Snowflake SQL API authentication for the authentication model.Choose the Snowflake account URL, role, and warehouse for the connection. The account URL must use the https://<account>.snowflakecomputing.com format with no path, custom port, query, or fragment. Flow stores the role and warehouse with the connection and sends them with each statement request.Grant the role USAGE on the warehouse. Grant any database, schema, table, view, or procedure privileges required by the statements your automations run. Use a least-privilege role when automations only need read access.Flow verifies the connection by running SELECT 1 through the Snowflake SQL API. If Snowflake returns a statement handle, Flow checks the statement status before it saves the connection. If verification rejects the token, create a replacement token and reconnect. If Snowflake denies the query, check the token user, role restriction, role grants, and warehouse grants.Connect in Flow
1
Find the Snowflake SQL integration.
- Open Integrations.
- Choose Add connection.
- In Add connection, search for Snowflake SQL.
- Select the Snowflake SQL card.
2
Connect.
- Pick the team that will use the connection.
- Enter a connection name and continue to Snowflake account URL.
- Enter the account URL, role, and warehouse.
- Select Continue.
- Select Connect to open the credential form.
- Enter the programmatic access token and submit the form.
- Wait for Flow to verify
SELECT 1against the selected role and warehouse. - After connection completes, enable Automation for each team that needs it.
- Choose the Snowflake SQL actions automations can run.
- Choose Save if you changed the selection.