Search code examples
amazon-web-servicesamazon-s3boto3pre-signed-url

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.


Solution

  • 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?