MinIO: Difference between revisions

From Wiki
No edit summary
Line 1: Line 1:


* [[MinIO: Deploy MinIO as Container]]
* [[MinIO: Deploy MinIO as Container]]
= Testing =
1) Create a bucket. Sample: '''mysfg-bucket-minio'''
2) Access the MinIO console and create a access token.
The file is something like this:
{
  "url":"http://10.1.1.1:9001/api/v1/service-account-credentials",
  "accessKey":"VQ...A",
  "secretKey":"K4...e",
  "api":"s3v4",
  "path":"auto"
}
3) Install aws client
4) run command
aws configure
and informe accessKey and secretKey.
5) Copy file from bucket to local machine
aws s3 cp s3://mysfg-bucket-minio/ . --recursive --endpoint-url http://9.30.42.75:9000
6) Copy file from local machine to bucket
aws s3  cp arquivo_teste2.txt s3://mysfg-bucket-minio/  --endpoint-url http://9.30.42.75:9000





Revision as of 12:50, 2 October 2023


Testing

1) Create a bucket. Sample: mysfg-bucket-minio

2) Access the MinIO console and create a access token.

The file is something like this:

{
  "url":"http://10.1.1.1:9001/api/v1/service-account-credentials",
  "accessKey":"VQ...A",
  "secretKey":"K4...e",
  "api":"s3v4",
  "path":"auto"
}

3) Install aws client

4) run command

aws configure

and informe accessKey and secretKey.

5) Copy file from bucket to local machine

aws s3 cp s3://mysfg-bucket-minio/ . --recursive --endpoint-url http://9.30.42.75:9000 

6) Copy file from local machine to bucket

aws s3  cp arquivo_teste2.txt s3://mysfg-bucket-minio/   --endpoint-url http://9.30.42.75:9000 


Ver também