[AWS] Presign url for S3

If you want to share some file in S3 with some one for a period of time you can create presign url.

aws s3 presign s3://<bucket_name>/<filen_ame> --expires-in <seconds>

Example:

aws s3 presign s3://cjrivas-demo-bucket/images.jpg --expires-in 30

So this image will expires in 30 seconds.

原文地址:https://www.cnblogs.com/Answer1215/p/14488221.html