AWS CLI with MinIO Server

1、Install MinIO Server

https://min.io/docs/minio/linux/index.html

Create AK and SK and record information.

AK:ZYYMPcLi6dSPsDfr5QeW
SK:Am3m2qtpkUk2wAgT5dPbpE4hGD2tX7a6RpjsbeEd

And create a bucket named aswtest.

2、Install AWS CLI

Refer to https://aws.amazon.com/cli/
Testing on Rcoky Linux 9.4

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install

Check

[root@mydb ~]# aws --version
aws-cli/2.19.1 Python/3.12.6 Linux/5.14.0-427.42.1.el9_4.x86_64 exe/x86_64.rocky.9

3、configuration

Fill in AK and SK, region, region default us-east-1, and press enter after format.

[root@mydb ~]# aws configure
AWS Access Key ID [None]: ZYYMPcLi6dSPsDfr5QeW
AWS Secret Access Key [None]: Am3m2qtpkUk2wAgT5dPbpE4hGD2tX7a6RpjsbeEd
Default region name [None]: us-east-1
Default output format [None]:

Additionally enable AWS Signature Version ‘4’ for MinIO server.

[root@mydb ~]# aws configure set default.s3.signature_version s3v4

4、Common commands and scenarios

1.To list your buckets

[root@mydb ~]# aws --endpoint-url http://192.168.5.130:9000 s3 ls
2024-11-02 21:37:27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值