Commands - S3 Object Storage


Setup S3CMD

s3cmd --configure

Enter your Access Key and Secret Access Key when prompted.

s3 Endpoint [s3.amazonaws.com] : `endpoint-s3.mydomain.club`
DNS-style bucket+hostname : `endpoint-s3.mydomain.club`

Upload a file to S3 Bucket

s3cmd put file_or_folder s3://my-test-bucket/path

Using garage from deux fleurs

Grant a key buckert read write access

# list keys
docker exec -ti containerid /garage key list
docker exec -ti containerid /garage bucket allow --read --write bucketname --key keyid