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!

질문됨 4달 전185회 조회
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.

profile pictureAWS
전문가
답변함 4달 전
profile picture
전문가
검토됨 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠