S3 presigned url expiring too early – Amazon Web Sevices
I use boto3 to generate a presigned URL for an S3 object S3_CLIENT = boto3.client('s3') PRESIGNED_URL_EXPIRY_SECONDS = 7*24*3600 def generate_presigned_url(bucket_name, object_key, expiration): """ Generates a pre-signed URL for an S3 object. Args: bucket_name (str): The name of the S3 bucket.…