Is there any way that I can generate Pre-Signed URL\'s without any expiry date ? I\'m developing a Email app where my attachments will be saved in S3. Also please let me kno
On client you could do:
const image = image.split('&Expires')[0]
That's one of the workarounds that i used
A somewhat solution for you might be to make the AWS CloudFront distribution that serves your S3 bucket with limited access to only Distribution Origin Access Identity and then using CloudFront Signed urls. Which expiry time can be even in years. So for unlimited or semi-unlimited urls I would recommend such solution.
The maximum expiration time for presigned url is one week from time of creation. So there is no way to have a presigned url without expiry time.
It depends on how you generate the S3 pre-signed URL. Specifically, which signature version you use and what type of IAM credentials you use.
The credentials that you can use to create a pre-signed URL include:
Note specifically:
For more, see: