Polyaxon allows users to connect to one or multiple buckets on S3 to store job outputs and experiment artifacts.

Create an S3 bucket

You should create an S3 bucket (e.g. plx-storage).

In order to use S3 buckets with Polyaxon, you should create a file containing your access information json object, e.g. s3-key.json. This file should include at least the following information:


All possible values:

  "AWS_REGION": ""

Create a secret on Kubernetes

You should then create a secret with this access keys information on Kubernetes on the same namespace as Polyaxon deployment:

kubectl create secret generic s3-secret --from-file=s3-secret.json=path/to/s3-key.json -n polyaxon

Use the secret name and secret in your outputs persistence definition

      store: s3
      bucket: s3://[BUCKET-NAME]
      secret: [SECRET-NAME]
      secretKey: [SECRET-KEY]


      store: s3
      bucket: s3://outputs-bucket
      secret: s3-secret
      secretKey: s3-key

Update/Install Polyaxon deployment

You can now install/upgrade Polyaxon with access the outputs on S3.

Storing outputs and artifacts in your experiments/jobs

You can use polyaxon-client to access the outputs in your jobs/experiments.

Polyaxon client does not bundle by default the S3 storage requirements to keep the client lightweight:

pip install polyaxon-client[s3]

or to have more control over the version of S3 storage:

pip install polyaxon-client
pip install boto3
pip install botocore

In your experiment/job definition, you can add this step to be available during the run:

    - pip3 install polyaxon-client[s3]

Using the outputs store from tracking

In your experiment/job, Polyaxon exposes the secret related to the outputs as well as the outputs path scheduled for the run as an an env var,
and provides an interface to get an authenticated client for each one of these Paths.

from polyaxon_client.tracking import Experiment

experiment = Experiment()


If you are using Tensorflow, you won't need to do any further configuration since Tensorflow can natively use S3, Polyaxon will automatically set the required environment variables so that Tensorflow can use the bucket.