skip to Main Content

Amazon web services – Problem with aws expiration time for presigned url

I have created a function to get a link to download an object in S3. def get_presigned_url(s3_bucket, s3_object_key, expiration_seconds): url = boto3.client('s3', config=Config(signature_version='s3v4'), aws_access_key_id='access_key_id', aws_secret_access_key='secret_access_key').generate_presigned_url( ClientMethod='get_object', Params={'Bucket': s3_bucket, 'Key': s3_object_key}, ExpiresIn=expiration_seconds) return url It creates the link with the correct…

VIEW QUESTION
Back To Top
Search