Jatin Mehrotra
Jatin Mehrotra

Reputation: 11496

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?

Upvotes: 4

Views: 3687

Answers (1)

Ivan Carcamo
Ivan Carcamo

Reputation: 734

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

Upvotes: 4

Related Questions