The AWS CLI works with any S3-compatible service when you set the endpoint.
1. Install the AWS CLI Follow the official install guide for your system. Check with aws --version.
2. Set your keys Run: aws configure
- AWS Access Key ID: your access key
- AWS Secret Access Key: your secret key
- Default region name: ZenexCloud does not publish a region name for S3 storage. If your tool asks for a region, enter us-east-1 (the standard default for S3-compatible storage) together with the endpoint https://s3.zenex.cloud. If the tool reports a region error, open a support ticket and the team will help.
- Default output format: json
3. Use the endpoint with each command Endpoint: The ZenexCloud S3 endpoint is https://s3.zenex.cloud (use it as the endpoint URL in AWS CLI, rclone, Cyberduck and SDKs).
- List buckets: aws s3 ls --endpoint-url ENDPOINT
- Upload: aws s3 cp file.zip s3://my-bucket/ --endpoint-url ENDPOINT
- Download: aws s3 cp s3://my-bucket/file.zip . --endpoint-url ENDPOINT
- Sync a folder: aws s3 sync ./folder s3://my-bucket/folder --endpoint-url ENDPOINT
- Delete: aws s3 rm s3://my-bucket/file.zip --endpoint-url ENDPOINT
Replace ENDPOINT with the endpoint address above.
Tip: save the endpoint Add it to ~/.aws/config under your profile, so you do not retype it: [profile zenex] region = REGION endpoint_url = ENDPOINT Then run: aws s3 ls --profile zenex
Troubleshooting
- SignatureDoesNotMatch: wrong key or secret, or wrong region.
- Could not connect: check the endpoint spelling and that it starts with https://.
- AccessDenied: the key does not have access to this bucket.
- If a path-style address is needed, set addressing_style = path in the profile s3 section.
Still need help?
Ask Zeni in the chat bubble, or open a support ticket. We answer 24/7.