Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Presigned URL valid for more than 7 days

Just wanted to know is there a way to use AWS S3 Presigned URL for more than 7 Days using V4 of Presigned URL.

like image 691
bhargav patel Avatar asked Oct 14 '25 15:10

bhargav patel


2 Answers

Upto 7 days - Yes

More than 7 days - NO

It is important to know the max expiration time differs with different ways which creates pre-signed URL

  • Using s3 console - max 12 hours
  • AWS explorer for Visual Studio - max 7 days
  • AWS SDK - max 7 days
  • AWS CLI - max 7 days

Docs for reference

It becomes essential to understand that presigned URLs are used for limited time access, not long durations. In a broader scope, you are giving access to your bucket to some external identity why would you give access to some external identity that too for so long?

like image 198
Jatin Mehrotra Avatar answered Oct 17 '25 05:10

Jatin Mehrotra


No unfortunately.

The current maximum expiration time for a presigned URL - which is a hard limit & cannot be increased - is 7 days from the time of creation.

like image 34
Ermiya Eskandary Avatar answered Oct 17 '25 05:10

Ermiya Eskandary