CLI and SDKs

Configuration for the most common S3 tools. In every case you set three things: the endpoint, the region, and your access keys.

AWS CLI

Configure a profile:

# ~/.aws/config
[profile myota]
region = us-east-1
s3 =
    endpoint_url = https://s3.demo.myota.io
    addressing_style = path
# ~/.aws/credentials
[myota]
aws_access_key_id = YOUR_ACCESS_KEY_ID
aws_secret_access_key = YOUR_SECRET_ACCESS_KEY

List your buckets:

$ aws --profile myota s3 ls

rclone

# rclone.conf
[myota]
type = s3
provider = Other
access_key_id = YOUR_ACCESS_KEY_ID
secret_access_key = YOUR_SECRET_ACCESS_KEY
endpoint = https://s3.demo.myota.io
region = us-east-1

Python (boto3)

import boto3

s3 = boto3.client(
    "s3",
    endpoint_url="https://s3.demo.myota.io",
    region_name="us-east-1",
    aws_access_key_id="YOUR_ACCESS_KEY_ID",
    aws_secret_access_key="YOUR_SECRET_ACCESS_KEY",
)

s3.upload_file("local.txt", "my-bucket", "local.txt")