Varshit Dusad
11/23/2023, 9:36 PMFailed with Unknown Exception <class 'AssertionError'> Reason: Error encountered while executing 'read_buckets':
Failed to Bind variable s3_client for function files.list_buckets.
Error encountered while executing 'read_buckets':
Failed to Bind variable s3_client for function files.list_buckets
I suppose it is because, it is not one of the native type supported?
Will I have to write a custom FlyteType class as explained here? Any alternatives?Ketan (kumare3)
Varshit Dusad
11/23/2023, 9:48 PMVarshit Dusad
11/23/2023, 9:51 PMKetan (kumare3)
Ketan (kumare3)
Ketan (kumare3)
Varshit Dusad
11/23/2023, 10:21 PMRyan Russon
11/24/2023, 3:12 AMminio
instance inside your deployment, which your workflows are always interacting with. Beyond that, if you are trying to interact with an external s3 bucket outside of your deployment, then yes, I think the approach you would have to take is what you are trying to do there.Varshit Dusad
11/24/2023, 3:16 AMVarshit Dusad
11/24/2023, 3:17 AMKetan (kumare3)
Varshit Dusad
11/24/2023, 3:58 AMVarshit Dusad
11/24/2023, 4:00 AMKetan (kumare3)
Ketan (kumare3)
Ketan (kumare3)
Varshit Dusad
11/24/2023, 4:13 AMVarshit Dusad
11/24/2023, 4:13 AMKetan (kumare3)
Varshit Dusad
11/24/2023, 4:14 AMKetan (kumare3)
Ketan (kumare3)
Varshit Dusad
11/24/2023, 4:14 AMKetan (kumare3)
Varshit Dusad
11/24/2023, 4:14 AMVarshit Dusad
11/24/2023, 4:14 AMKetan (kumare3)
Ketan (kumare3)
Ketan (kumare3)
Ketan (kumare3)
Ketan (kumare3)
Varshit Dusad
11/24/2023, 4:16 AMSamhita Alla
Samhita Alla
pyflyte run --remote --service-account <your-sa> <python-file.py> <task-or-workflow>
Varshit Dusad
11/24/2023, 4:40 AMVarshit Dusad
11/24/2023, 4:41 AMSamhita Alla
kubectl edit configmap flyte-sandbox-config -n flyte
to include the s3 config:
003-storage.yaml: |
propeller:
rawoutput-prefix: <s3://my-s3-bucket/data>
storage:
type: stow
stow:
kind: s3
config:
region: us-east-1
disable_ssl: true
v2_signing: true
endpoint: <http://flyte-sandbox-minio.flyte:9000>
auth_type: accesskey
container: my-s3-bucket
100-inline-config.yaml: |
plugins:
k8s:
default-env-vars:
- FLYTE_AWS_ENDPOINT: <http://flyte-sandbox-minio.flyte:9000>
- FLYTE_AWS_ACCESS_KEY_ID: minio
- FLYTE_AWS_SECRET_ACCESS_KEY: miniostorage
storage:
signedURL:
stowConfigOverride:
endpoint: <http://localhost:30002>
this configuration is for minio. if you want to update it to an s3 bucket, you'll need to change this.
if you want to use both minio and s3, i don't think it's possible today: https://discuss.flyte.org/t/16068582/hi-all-i-just-wanted-to-expand-my-last-question-about-access#9b87c938-6010-48b0-8686-d3519c894c45.Varshit Dusad
11/24/2023, 4:49 AMVarshit Dusad
11/24/2023, 4:49 AMSamhita Alla
kubectl edit configmap flyte-sandbox-config -n flyte
and then save it.Varshit Dusad
11/24/2023, 4:51 AMSamhita Alla
Varshit Dusad
11/24/2023, 4:55 AM