https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Alex Lyashok

01/22/2024, 8:52 PM
is anybody using snowflake plugin? docs at https://docs.flyte.org/en/latest/deployment/plugins/webapi/snowflake.html#deployment-plugin-setup-webapi-snowflake ask to set up JWT token and put it into config but snowflake JWT token expires in 1 hr max?
Copy code
The JWT is valid for at most one hour after the token is issued, even if you specify a longer expiration time.
k

Kevin Su

01/22/2024, 10:07 PM
a

Alex Lyashok

01/22/2024, 10:27 PM
@Kevin Su any pointers on how this gets configured?
k

Kevin Su

01/22/2024, 10:38 PM
1. update your plugin settings
Copy code
tasks:
  task-plugins:
    enabled-plugins:
      - container
      - sidecar
      - k8s-array
      - agent-service
    default-for-task-types:
      - container: container
      - container_array: k8s-array
      - snowflake: agent-service

plugins:
  agent-service:
    supportedTaskTypes:
    - snowflake
2. update the agent secret
Copy code
$ kubectl edit secret flyteagent -n flyte

apiVersion: v1
data:
  snowflake_private_key: <BASE64_ENCODED_DATABRICKS_TOKEN>
kind: Secret
metadata:
  annotations:
if you didn’t install flyteagent, use helm to install it
Copy code
helm repo add flyteorg <https://flyteorg.github.io/flyte>
helm install flyteagent flyteorg/flyteagent --namespace flyte
sorry, the pr of adding snowflake doc is not merged yet.
a

Alex Lyashok

01/23/2024, 1:14 PM
thanks