Skip to content

How to configured S3 connection to upload/download artifacts programmatically #1480

Discussion options

You must be logged in to vote

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 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:

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.

T…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by polyaxon-team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant