S3 Bucket object copy

https://docs.aws.amazon.com/zh_cn/zh_cn/sdk-for-java/v1/developer-guide/examples-s3-objects.html#copy-object
http://docs.aws.amazon.com/java-sdk/latest/developer-guide/setup-credentials.html
https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/java/example_code/s3/pom.xml

 

 

AmazonS3 s3 = AmazonS3ClientBuilder.standard()
     .withEndpointConfiguration(new EndpointConfiguration(
          "https://s3.eu-west-1.amazonaws.com",
          "eu-west-1"))
     .withCredentials(CREDENTIALS_PROVIDER)
     .build();

  

 

docker run --name minio \
--publish 9000:9000 \
--publish 9001:9001 \
-e "MINIO_ROOT_USER=admin" \
-e "MINIO_ROOT_PASSWORD=12345678" \
-e "MINIO_ACCESS_KEY=AKIAJPDAXETRTZTEVSRA" \
-e "MINIO_SECRET_KEY=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" \
--env MINIO_DEFAULT_BUCKETS='my-first-bucket:public,my-second-bucket' \
bitnami/minio:latest

 

aws_access_key_id = AKIAJPDAXETRTZTEVSRA

aws_secret_access_key = 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

 

AKIAIOSFODNN7EXAMPLE

posted @ 2022-02-25 13:38  dunkbird  阅读(91)  评论(0编辑  收藏  举报