https://docs.aws.amazon.com/cli/latest/reference/s3/presign.html
aws s3 presign s3://mybucket/myobject --expires-in 300
Output:
https://mybucket.s3.amazonaws.com/myobject?AWSAccessKeyId=AKIAJXXXXXXXXXXXXXXX&Expires=1503602631&Signature=ibOGfAovnhIF13DALdAgsdtg2s%3D
Please note maximum time is 604800 seconds (seven days)
No comments:
Post a Comment