How to configured S3 connection to upload/download artifacts programmatically #1480
-
We’re implementing a few things and I’ve got a quick question. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We have to update that section, those services are deprecated, I would use the new implementation: from polyaxon.fs.fs import get_fs_from_name
fs = get_fs_from_name("model-registry-s3") This will return a fully resolved s3fs object. More information about how to use the Note 1: The s3 rquirement is not installed by default, you wiil need Note2: You will have to request the connection: run:
connections: ["model-registry-s3"] Also by requesting the connection, the secret/config will be available in the container, so you can also use boto3 automatically if you do not like the to the s3fs implementation. The docs for: |
Beta Was this translation helpful? Give feedback.
We have to update that section, those services are deprecated, I would use the new implementation:
This will return a fully resolved s3fs object. More information about how to use the
fs
object: https://s3fs.readthedocs.io/en/latest/#examples.Note 1: The s3 rquirement is not installed by default, you wiil need
pip install "polyaxon[s3]"
Note2: You will have to request the connection:
Also by requesting the connection, the secret/config will be available in the container, so you can also use boto3 automatically if you do not like the to the s3fs implementation.
T…