Manage Openflow BYOC deployments

This topic covers management tasks that apply only to BYOC deployments. For tasks that apply to all deployments, such as backing up flows, upgrading runtimes and connectors, and removing a deployment from Openflow, see Manage Openflow.

Upgrade a BYOC deployment

BYOC deployments aren’t upgraded automatically. You determine upgrade timing and frequency. You can upgrade a BYOC deployment from the UI or with the deployment agent script.

What an upgrade changes

When you upgrade a BYOC deployment from the UI or with the deployment agent script, Openflow updates the following:

  • The deployment agent. The agent image on the agent host is replaced. The agent EC2 instance isn’t replaced.
  • The agent host operating system. The agent host is upgraded in place with the latest Amazon Linux 2023 packages. The host reboots only when the kernel changes, and the reboot affects only the agent host, not the EKS cluster or running runtimes.
  • Openflow components in the EKS cluster. These components include the deployment service, deployment UI, ingress controller, runtime operator, and the supporting components that Openflow deploys, such as cert-manager and the other Helm-managed applications.
  • EKS worker nodes. Nodes are replaced one at a time with the latest Amazon EKS-optimized Amazon Linux 2023 AMI. Software that you installed directly on a worker node isn’t kept, and Snowflake doesn’t support third-party software installed directly on EKS worker nodes. For more information, see What happens to your software.
  • EKS add-ons. Openflow pins and manages the versions of the EKS add-ons that it uses, such as kube-proxy and the Amazon EBS CSI driver. Don’t update them manually.
  • The bundled Snowflake CLI on the agent host. Each upgrade installs the CLI version that ships with that Openflow release.

Important

Don’t update the CloudFormation stack after the initial setup, for example from a Terraform or CI/CD pipeline. A stack update might replace the agent EC2 instance, and the replacement starts from the agent version and settings in the original stack, not the version that you upgraded to. Upgrade only from the UI or with the deployment agent script. If you manage the stack with automation, exclude the stack from routine automated updates. To add tags to an existing deployment, see Add or change tags on an existing deployment.

To patch the agent host operating system without a new Openflow version, connect to the deployment agent and run ./upgrade.sh as the same user that you connected with (typically ec2-user), and not as root. The script refreshes the host operating system and reboots the host if required.

Upgrade from the UI

On the Deployments tab, an eligible BYOC deployment shows an Upgrade option in its More options (Three vertical dots indicating more options) menu. If a deployment isn’t eligible, that option doesn’t appear, so upgrade it with the deployment agent script instead.

  1. Sign in to Snowsight.

  2. In the navigation menu, select Ingestion » Openflow.

  3. Select Launch Openflow.

  4. Select the Deployments tab.

  5. Look for the upgrade arrow to the left of the deployment name. This indicates an upgrade is available. Deployments tab showing the upgrade arrow indicator next to a deployment name

  6. Select Three vertical dots indicating more options next to the deployment » Upgrade.

Upgrade with the deployment agent script

Use the deployment agent script for older BYOC deployments that cannot be upgraded via the UI, or when you prefer to upgrade manually. This upgrades the agent, deployment service, deployment UI, ingress controller, runtime operator, and all other component dependencies.

Connect to the deployment agent

  1. Navigate to Openflow.
  2. Select the Deployments tab.
  3. View your deployment details and note the deployment key.
  4. In your AWS account, view the EC2 instances and filter using the deployment key.
  5. Locate the deployment agent EC2 instance named openflow-agent-{deployment-key}.
  6. Connect using EC2 Instance Connect Endpoint and accepting all defaults.
  7. Run the remaining commands from the new browser tab or window that appears with a command-line interface.

Check for available upgrades

cat ~/.upgrade

The script will display the latest available version of the various deployment components.

If no upgrades are available, you will see an output similar to this:

AGENT_IMAGE_VERSION_UPGRADE=
OPERATOR_CHART_VERSION_UPGRADE=
GATEWAY_IMAGE_VERSION_UPGRADE=
DPS_CHART_VERSION_UPGRADE=
DPUI_CHART_VERSION_UPGRADE=

Otherwise, you will see the version that upgraded components will use, such as:

AGENT_IMAGE_VERSION_UPGRADE=0.17.0
OPERATOR_CHART_VERSION_UPGRADE=0.31.0
GATEWAY_IMAGE_VERSION_UPGRADE=
DPS_CHART_VERSION_UPGRADE=
DPUI_CHART_VERSION_UPGRADE=

Upgrading the AMI for the Openflow BYOC deployment

When you upgrade your Openflow BYOC deployment, Openflow will find and upgrade to the latest AMI for Amazon Linux 2023 recommended by AWS Systems Manager.

If a new AMI is found, it will restart all Openflow services in your deployment, and runtimes will be temporarily halted. Openflow runtimes and connectors maintain data integrity across restarts automatically.

Snowflake does not automatically upgrade deployments. You determine upgrade timing and frequency.

Initiate the upgrade

If the output indicates that upgrades are available, run the following script to initiate the upgrade. Older Openflow deployments may use the script upgrade-data-plane.sh instead.

./upgrade.sh

You will see output similar to this:

openflow-data-plane-agent-aws is set to version 0.16.0
   Upgrade set to version 0.17.0
openflow-dataplane-service-chart is set to version 0.47.0
   No upgrade is available
openflow-dataplane-ui-chart is set to version 0.5.0
   No upgrade is available
openflow-runtime-gateway is set to version 2025.6.8.2
   No upgrade is available
runtime-operator-chart is set to version 0.30.0
   Upgrade set to version 0.31.0

Then, you have two options:

  • Wait for an automatic upgrade: The system will automatically initiate the upgrade process within approximately 10 minutes.
  • Manual upgrade: To start the upgrade immediately, run the following command:
./create.sh

Monitor the upgrade process

To track the progress of the upgrade, use the journalctl command:

journalctl -u openflow-apply-infrastructure -f -n 250

Verify a successful upgrade

A successful upgrade will typically show output similar to this:

All resources applied successfully and log uploaded to s3
openflow-apply-infrastructure.service: Deactivated successfully

BYOC runtime restarts

Snowflake doesn’t automatically upgrade BYOC runtimes. Upgrades happen only when a deployment owner initiates them through the Openflow UI or the deployment agent. For general restart behavior and guidance on designing resilient flows, see Runtime availability and autoscaling behavior.

In addition to upgrades, BYOC runtimes can restart for the following reasons:

EC2 node group scaling

Openflow scales the EC2 node group up and down based on demand. During scale-in, node-drain, or rebalancing events, the cluster can reschedule a runtime pod onto another node. For details on how BYOC deployments scale, see Openflow BYOC cost and scaling considerations.

Cloud provider host events

The virtual machines that host BYOC runtimes are subject to events outside Snowflake’s control, including instance retirement, unexpected reboots, and host-level maintenance performed by the cloud service provider. When a host becomes unavailable, the cluster reschedules the affected runtime onto a healthy node.

Remove BYOC infrastructure in AWS

Complete these steps for both gen 1 and gen 2 BYOC deployments before removing the deployment from Openflow. SQL commands don’t replace these AWS cleanup steps. After you complete these steps, remove the deployment from Openflow.

  1. In the AWS Console, navigate to EC2 Instances.

  2. Select the openflow-agent-{deployment-key} instance with your deployment key.

  3. Click Connect at the top of the page.

  4. Switch from EC2 Instance Connect to Connect using EC2 Instance Connect Endpoint. Leave the default EC2 Instance Connect Endpoint in place.

  5. Click Connect. A new browser tab or window will appear with a command-line interface.

  6. Run ./destroy.sh from the shell.

    • This may take 20-30 minutes. If your connection is interrupted, the process continues running in the background.
    • You can log back in and view its status with the command: journalctl -u docker -f -n 250
    • The destroy process is complete when you see output of delete successful. Wait for this output before continuing.
  7. Navigate to CloudFormation in the AWS Console for your region.

  8. Delete the CloudFormation stack for your deployment and wait for stack deletion to complete.

Important

Running destroy.sh doesn’t complete BYOC teardown. You must also delete the CloudFormation stack and then remove the deployment from Openflow. Running create.sh after destroy.sh on the same deployment isn’t a supported reinstall workflow.

To start over, complete all deletion steps, then create a new BYOC deployment and use the new deployment’s CloudFormation template. Don’t reuse the old deployment or its template.