Snowflake Plugin SetupΒΆ

This guide gives an overview of how to set up Snowflake in your Flyte deployment.

  1. First, clone the Flytesnacks repo. This is where we have the example.

    git clone
  2. Start the Flyte sandbox for testing.

    flytectl sandbox start --source=./flytesnacks
    flytectl config init
  3. Create a file named values-snowflake.yaml and add the following config to it:

    # -- Tasks specific configuration [structure](
      # -- Plugins configuration, [structure](
        # -- [Enabled Plugins]( Enable sagemaker*, athena if you install the backend
        # plugins
          - container
          - sidecar
          - k8s-array
          - snowflake
          container: container
          sidecar: sidecar
          container_array: k8s-array
          snowflake: snowflake
  1. Create a trial Snowflake account and follow the docs for creating an API key.

  2. Add snowflake JWT token to FlytePropeller.


Refer to the Snowflake docs to understand setting up the Snowflake JWT token.

kubectl edit secret -n flyte flyte-propeller-auth

The configuration will look as follows:

apiVersion: v1
  client_secret: Zm9vYmFy
kind: Secret
  annotations: flyte flyte

Replace <JWT_TOKEN> with your JWT token.

  1. Upgrade the Flyte Helm release.

    helm upgrade -n flyte -f values-snowflake.yaml flyteorg/flyte --kubeconfig=~/.flyte/k3s/k3s.yaml
  2. Register the Snowflake plugin example.

    flytectl register files --archive -p flytesnacks -d development
  3. Lastly, fetch the launch plan, create and monitor the execution.

    flytectl get launchplan --project flytesnacks --domain development snowflake.workflows.example.snowflake_wf  --latest --execFile exec_spec.yaml
    flytectl create execution --project flytesnacks --domain development --execFile exec_spec.yaml
    flytectl get execution --project flytesnacks --domain development <execution_id>