boto3 s3 generate_presigned_url ExpiresIn doesn’t work as expected

Question:

I have tried to generate pre-signed URL with 7dsys expiration time.
(It is saying maximum duration is 7days, AWS S3 pre signed URL without Expiry date)

However, it seems not to retain the pre-signed URL for 7days but just several hours. The pre-signed URL just returns the XML format after that.

It seems even to be different expiration time every time I try, sometimes 5 hours, sometime 12hours.

I don’t know why.

Answer:

Leave a Reply