Endpoints and regions
chili is reachable through two S3 endpoints. Which one you use depends on whether a bucket was created with geo-redundancy. The chili Console shows the right endpoint for each bucket and at the end of the setup wizard.
Overview
Endpoint | Location | Region | Use |
|---|---|---|---|
| Zurich (CH-EAST) |
| Default for buckets in Zurich |
| Zurich and Geneva (CH-EAST + CH-WEST) |
| Buckets with geo-redundancy |
Both endpoints accept HTTPS on port 443 only. Unencrypted HTTP connections are refused.
Which endpoint to use
- Default:
s3-ch-east.chilistorage.com. Enter this endpoint in backup software, NAS systems, CLI tools and SDKs. - Bucket with geo-redundancy:
s3-ch.chilistorage.com. You choose geo-redundancy when you create the bucket in the chili Console; chili then keeps a second copy in Geneva (CH-WEST). It cannot be changed later.
All examples in these docs use the default endpoint s3-ch-east.chilistorage.com. For buckets with geo-redundancy, replace it with s3-ch.chilistorage.com.
Region field
Many tools and SDKs ask for a region in addition to the endpoint. Enter ch-east for both endpoints.
The request signature (AWS Signature Version 4) includes the region. If the tool is set to an AWS region such as us-east-1 or eu-central-1, requests can be rejected with SignatureDoesNotMatch or AuthorizationHeaderMalformed.
Addressing: path style
chili addresses buckets in path style. The bucket name goes into the path, not the host name:
Path style: https://s3-ch-east.chilistorage.com/my-bucket/file.txt
Virtual-hosted style: https://my-bucket.s3-ch-east.chilistorage.com/file.txtMost tools call this option "path style", "force path style" or s3ForcePathStyle. Backup software and NAS systems that offer an "S3 Compatible" or "Other" provider often have it enabled already.
Virtual-hosted style is possible in principle, but it is not set up by default. If your application requires virtual-hosted style, check with chili support how to enable it for your account and which host name applies.
Access keys
To connect, you need an access key and a secret key. Create both in the chili Console at console.chilistorage.com, see chili Console. The secret key is shown only once, so store it in your password manager or secret store right away.
Test the connection
With the AWS CLI you can check endpoint and keys in a few seconds:
aws configure set aws_access_key_id <ACCESS_KEY>
aws configure set aws_secret_access_key <SECRET_KEY>
aws configure set region ch-east
aws configure set request_checksum_calculation when_required
aws configure set response_checksum_validation when_required
aws s3 ls --endpoint-url https://s3-ch-east.chilistorage.comIf your buckets are listed (or, on a new account, no error is returned), the connection works. Without the AWS CLI, a plain HTTPS check is enough:
curl -sI https://s3-ch-east.chilistorage.comAny HTTP status in the response shows that the endpoint and TLS are reachable. A 403 is expected here because the request is not signed.
Common mistakes
- Endpoint without `https://`: some tools expect the full URL, others only the host name. Check the field description.
- Wrong region: an AWS region in the region field causes signature errors. Use
ch-east. - Virtual-hosted style enabled: if the bucket name ends up in the host name, DNS resolution or the TLS check fails. Switch to path style, or clarify virtual-hosted style with support.
- Clock out of sync: if the client clock is off by more than 15 minutes, chili rejects signed requests with
RequestTimeTooSkewed. Synchronise the time via NTP.
Next steps
- Quickstart guides: set up the AWS CLI, boto3, rclone and Cyberduck
- SDKs: code samples for Python, Node.js, Go, Java, .NET and PHP
- S3 API reference: supported operations and error codes