Direkt zum Inhalt

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!

gefragt vor einem Jahr564 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor einem Jahr
EXPERTE
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.