Set up Openflow - Snowflake Deployment: Create deployment¶
After configuring core Snowflake, create an Openflow deployment. A deployment is the data plane container for your runtimes and connectors. Each deployment can host multiple runtimes, and each runtime can run multiple connectors, giving you flexibility to isolate workloads by project, team, or environment. There is no separate charge for the deployment itself; only active runtimes consume Snowflake credits.
- Create a deployment.
- [Optional] Configure an Openflow-specific event table - configure an Openflow-specific event table to store Openflow logs and metrics.
Create a deployment¶
You can create a deployment from the Openflow UI, which works for both generations, or with SQL. The SQL commands in this topic create gen 2 deployments.
Note
Which generation you get is determined by your account, not by how you create the deployment. Once your account is enabled for gen 2, every new deployment is gen 2 and you can no longer create gen 1 deployments. Existing gen 1 deployments keep working unchanged.
To check whether your account is enabled for gen 2, run the following command:
If the command succeeds, your account is enabled for gen 2, including when it returns no rows. If it returns a SQL error, your account isn’t enabled for gen 2 and new deployments are gen 1.
For other ways to tell gen 1 and gen 2 resources apart, see How to identify gen 1 and gen 2 resources.
Using the Openflow UI¶
Note
To access the Openflow Runtime UI using PrivateLink as described in Setup PrivateLink UI access, ensure the PrivateLink option is enabled when creating a new Openflow - Snowflake Deployment.
- Sign in to Snowsight with a role defined in Configure core Snowflake requirements.
- In the navigation menu, select Ingestion » Openflow.
- Select Launch Openflow.
- In the Openflow UI, select Create a deployment. The Deployments tab opens.
- Select Create a deployment. The Creating a deployment wizard opens.
- In the Prerequisites step, ensure that you meet all the requirements. Select Next.
- In the Deployment location step, select Snowflake as the deployment location. Enter a name for your deployment. Select Next.
- Select Create Deployment.
Using SQL (gen 2)¶
Gen 2 deployments are first-class Snowflake objects created with SQL:
For PrivateLink considerations and additional parameters, see Quickstart: gen 2 Openflow.
[Optional] Configure an Openflow-specific event table¶
Openflow generates logs and metrics and sends them to the Snowflake Event Table. For helpful queries to analyze this telemetry data, see Monitor Openflow.
By default, Openflow uses the account event table (SNOWFLAKE.TELEMETRY.EVENTS), but you can configure an Openflow-specific event table per deployment. A dedicated event table is recommended to optimize query performance, enable granular access control, and simplify Openflow monitoring and maintenance.
-
Create the event table in the Openflow infrastructure schema:
-
Get your deployment name and set the event table:
Gen 2:
Gen 1:
[Optional] Create a monitoring role¶
A monitoring role lets data engineers or operations teams monitor Openflow without having the OPENFLOW_ADMIN role.
-
To create a monitoring role, run the following code:
Gen 1:
Gen 2: