跳至內容

Does Generating a Pre-Signed URL Using AWS SDK v3 Make a Network Request to AWS?

0

Hello AWS Community,

I'm currently using Rails application, along with AWS SDK version 3 to manage file uploads and access. I need to generate pre-signed URLs for accessing objects in my S3 bucket.

I understand that pre-signed URLs allow temporary access to objects without sharing credentials, but I am unclear about the process of generating these URLs. Specifically, I have the following questions:

  1. Does the process of generating a pre-signed URL using the AWS SDK (v3) make a network request to AWS, or is it performed entirely on the client-side?
  2. Are there any costs associated with generating pre-signed URLs?

From my understanding, the AWS SDK should generate the URL locally, but I want to confirm this. Additional insights on how asw sdk handles this process would be highly appreciated.

Additional Information: Rails Application: Using Active Storage for file uploads. AWS SDK Version: 3. Objective: Generate pre-signed URLs for secure and temporary access to S3 objects. References to official AWS documentation or other reliable sources would be helpful.

Thank you for your assistance!

已提問 2 年前檢視次數 589 次
1 個回答
0

Generating the pre-signed URL is an API call to AWS. It has to request the pre-signed URL and verify the permissions to the object in S3. The pre-signed URL gets the same permissions to the object as the user creating the pre-signed URL has.

https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-presigned-url.html

This medium article walks through the process: https://abhibvp003.medium.com/aws-s3-uploads-using-pre-signed-urls-bb5dd0a8a8e3

Hope this helps.

AWS
專家
已回答 2 年前
專家
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。