I would like to do this in R using the package 'paws':
import boto3
url = boto3.client('s3').generate_presigned_url(
ClientMethod='get_object',
Params={'Bucket': 'BUCKET_NAME', 'Key': 'OBJECT_KEY'},
ExpiresIn=3600)
from: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ShareObjectPreSignedURL.html
Anyone has any idea how to do it? thanks!!
In the latest version of paws 0.2.0 this functionality has been added. Currently at time of this reply paws 0.2.0 hasn't been released to the cran. However you can install it from r-universe using the following command:
I hope this helps :)