I am writing a small script to find a specific file in a bucket on aws and create a temporarily authenticated URL to send to colleagues. (Ideally, this will produce a result similar to right-clicking on a file in the console on the console and copying the link address).
I looked at a paper clip that did not seem to meet these criteria, but I just could not know about its full capabilities.
I tried the following:
def authenticated_url(file_name, bucket) AWS::S3::S3Object.url_for(file_name, bucket, :secure => true, :expires => 20*60) end
What caused this result:
...- 1.amazonaws.com/file_path/file.zip.AWSAccessKeyId={keyโบExpires=1200&Signature = {...}
Is there a way to create a secure URL, similar to the script described above, which can simply be sent as a link? If not, any safe alternatives would be welcome.
source share