How to Generate a Presigned S3 URL via AWS CLI

前端 未结 5 1469
误落风尘
误落风尘 2021-02-01 04:15

Is there a way to create presigned URL for objects in S3 bucket using AWS CLI?

I know that could be done using SDK, but is it possible with CLI?

I found this on

5条回答
  •  甜味超标
    2021-02-01 05:01

    So the command for pre-signed URL is:

    aws s3 presign s3://bucket-address/  --expires-in 300
    

    But the caveat is; we can have pre-signed URL's that works for individual file/object level and not on directory level.

    Happy to be corrected if wrong.

提交回复
热议问题