Use Runpod’s S3-compatible API to access and manage your network volumes.
https://s3api-[DATACENTER].runpod.io/
.
Create a network volume in one of the following datacenters to use the S3-compatible API:
Datacenter | Endpoint URL |
---|---|
EUR-IS-1 | https://s3api-eur-is-1.runpod.io/ |
EU-RO-1 | https://s3api-eu-ro-1.runpod.io/ |
Create a network volume
Create an S3 API key
user_***...
) and secret (e.g., rps_***...
) to use in the next step.Configure AWS CLI
aws configure
in your terminal.user_***...
) from the previous step.rps_***...
) from the previous step.json
.~/.aws/credentials
).ls
, cp
, mv
, rm
, and sync
function as expected.
aws s3
commands, you must pass in the endpoint URL for your network volume using the --endpoint-url
flag.
#
) may need to be URL encoded to ensure proper processing.ls
to list objects in a network volume directory:
cp
to copy a file to a network volume:
cp
to copy a file from a network volume to a local directory:
rm
to remove a file from a network volume:
aws s3api
commands (instead of the aws s3
) to interact with the S3-compatible API.
For example, here’s how you could use aws s3api get-object
to download an object from a network volume:
[LOCAL_FILE]
with the desired path and name of the file after download—for example: ~/local-dir/my-file.txt
.
For a list of available s3api
commands, see the AWS s3api reference.
AWS_ACCESS_KEY_ID
: Should be set to your Runpod S3 API key access key (e.g., user_***...
).AWS_SECRET_ACCESS_KEY
: Should be set to your Runpod S3 API key’s secret (e.g., rps_***...
).Operation | Description |
---|---|
CopyObject | Copy objects between locations. |
DeleteObject | Remove objects. |
GetObject | Download objects. |
HeadBucket | Verify bucket exists and you have permissions. |
HeadObject | Retrieve object metadata. |
ListBuckets | List available buckets. |
ListObjects | List objects in a bucket. |
PutObject | Upload objects. |
CreateMultipartUpload | Start a multipart upload for large files. |
UploadPart | Upload a part of a multipart upload. |
CompleteMultipartUpload | Finish a multipart upload. |
AbortMultipartUpload | Cancel a multipart upload. |
ListMultipartUploads | View in-progress multipart uploads. |
CopyObject
and UploadPart
actions do not check for available free space beforehand and may fail if the volume runs out of space. This behavior is similar to applying a size quota in S3.CompleteMultipartUpload
or AbortMultipartUpload
is called.#
) may need to be URL encoded to ensure proper processing.STANDARD
(all network volume objects use the STANDARD
storage class).