freezing-mouse-40688
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?freezing-airport-6809
freezing-mouse-40688
11/23/2023, 9:48 PMfreezing-mouse-40688
11/23/2023, 9:51 PMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-mouse-40688
11/23/2023, 10:21 PMclean-agent-63333
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.freezing-mouse-40688
11/24/2023, 3:16 AMfreezing-mouse-40688
11/24/2023, 3:17 AMfreezing-airport-6809
freezing-mouse-40688
11/24/2023, 3:58 AMfreezing-mouse-40688
11/24/2023, 4:00 AMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-mouse-40688
11/24/2023, 4:13 AMfreezing-mouse-40688
11/24/2023, 4:13 AMfreezing-airport-6809
freezing-mouse-40688
11/24/2023, 4:14 AMfreezing-airport-6809
freezing-airport-6809
freezing-mouse-40688
11/24/2023, 4:14 AMfreezing-airport-6809
freezing-mouse-40688
11/24/2023, 4:14 AMfreezing-mouse-40688
11/24/2023, 4:14 AMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-mouse-40688
11/24/2023, 4:16 AMtall-lock-23197
tall-lock-23197
pyflyte run --remote --service-account <your-sa> <python-file.py> <task-or-workflow>
freezing-mouse-40688
11/24/2023, 4:40 AMfreezing-mouse-40688
11/24/2023, 4:41 AMtall-lock-23197
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.freezing-mouse-40688
11/24/2023, 4:49 AMfreezing-mouse-40688
11/24/2023, 4:49 AMtall-lock-23197
kubectl edit configmap flyte-sandbox-config -n flyte
and then save it.freezing-mouse-40688
11/24/2023, 4:51 AMtall-lock-23197
freezing-mouse-40688
11/24/2023, 4:55 AM