Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to set time-limit for pre-signed url in s3?

I am just exploring pre-signed URLs in s3 and wanted to know is it possible to generate pre-signed URL from console instead of using SDK?

Also, is there a way to set a time-limit for the expiration of pre-signed URL from console, based on few other post on stack the default time limit is 7 days, how to override this value?

like image 495
Jatin Mehrotra Avatar asked Oct 19 '25 03:10

Jatin Mehrotra


1 Answers

As far as this date, no. There is no option in the web console to generate a sign URL.

And for your second question; yes, you can override the default URL expiration using the SDK.

AWS CLI example:

aws s3 presign s3://<bucket-name>/<file-name> --expires-in <seconds>

AWS CLI documentation

like image 94
Ivan Carcamo Avatar answered Oct 21 '25 16:10

Ivan Carcamo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!