Quickstart
This page shows your first steps with chili. Every example uses the default endpoint https://s3-ch-east.chilistorage.com (region ch-east) and access keys (access key and secret key) from the chili Console. Create the bucket beforehand in the chili Console. See Endpoints and regions.
AWS CLI
aws configure set aws_access_key_id AKIA...
aws configure set aws_secret_access_key ...
aws configure set region ch-east
aws configure set request_checksum_calculation when_required
aws configure set response_checksum_validation when_required
# List buckets
aws s3 ls --endpoint-url https://s3-ch-east.chilistorage.com
# Upload a file
aws s3 cp ./backup.tar s3://my-bucket/ --endpoint-url https://s3-ch-east.chilistorage.comNewer versions of the AWS CLI and the AWS SDKs send a checksum by default when uploading, which chili does not accept. The when_required setting turns this off; without it, uploads fail.
Python (boto3)
import boto3
from botocore.config import Config
s3 = boto3.client(
"s3",
endpoint_url="https://s3-ch-east.chilistorage.com",
region_name="ch-east",
config=Config(
s3={"addressing_style": "path"},
request_checksum_calculation="when_required",
response_checksum_validation="when_required",
),
aws_access_key_id="AKIA...",
aws_secret_access_key="...",
)
s3.upload_file("backup.tar", "my-bucket", "backup.tar")rclone
# ~/.config/rclone/rclone.conf
[chili]
type = s3
provider = Other
access_key_id = AKIA...
secret_access_key = ...
endpoint = https://s3-ch-east.chilistorage.com
region = ch-east
force_path_style = truerclone copy ./data chili:my-bucketCyberduck / S3 Browser
Create a new "Amazon S3" connection. Enter s3-ch-east.chilistorage.com as the server (port 443, HTTPS), plus the access key and secret key from the chili Console.