Quantcast
Channel: Raspberry Pi – IT Solutions Technology Blog
Viewing all articles
Browse latest Browse all 1171

Amazon Web Services (AWS) Command Line Interface (AWS CLI) – how to configure and use AWS CLI to manage data with MinIO Server

$
0
0

Feel free to use this service for testing and development and replace with your own MinIO keys

C:\>aws configure
AWS Access Key ID [None]: < Acces Key >
AWS Secret Access Key [None]:  < Secret Access Key >
Default region name [None]: ENTER
Default output format [None]: ENTER

Additionally enable AWS Signature Version ‚4‘ for MinIO server

C:\aws configure set default.s3.signature_version s3v4

To list your buckets

C:\>aws –endpoint-url http://192.168.1.151:9000 s3 ls
2020-12-11 13:06:51 bucket-governance
2021-03-08 14:23:23 bucket-homeoffice
2020-12-12 11:02:20 bucket-versioning
2020-12-11 12:53:16 bucket-worm

To list contents inside bucket

C:\>aws –endpoint-url http://192.168.1.151:9000 s3 ls s3://bucket-homeoffice
2021-03-08 14:25:07 43949 S3Browser_01.jpg
2021-03-08 14:25:03 129627 S3Browser_02.jpg

To make a bucket

C:\>aws –endpoint-url http://192.168.1.151:9000 s3 mb s3://bucket-homeoffice-02
make_bucket: bucket-homeoffice-02

To add an object to a bucket

aws –endpoint-url https://play.min.io:9000 s3 cp simplejson-3.3.0.tar.gz s3://mybucket
upload: ./simplejson-3.3.0.tar.gz to s3://mybucket/simplejson-3.3.0.tar.gz

To delete an object from a bucket

C:\aws –endpoint-url https://play.min.io:9000 s3 rm s3://mybucket/argparse-1.2.1.tar.gz
delete: s3://mybucket/argparse-1.2.1.tar.gz

To remove a bucket

C:\aws –endpoint-url https://play.min.io:9000 s3 rb s3://mybucket
remove_bucket: s3://mybucket/

To sync (rsync-like) between local storage and s3

C:\aws s3 sync s3://mybucket /some/local/dir/

Viewing all articles
Browse latest Browse all 1171

Trending Articles