Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating multiple signed url for multiple objects of AWS S3

Can we create multiple signed URL of S3(AWS), for multiple object in single request in node.js. Suppose there is a need to generate 100 signed URL for accessing 100 objects and for that we are using getSignedUrl() function of AWS -sdk which is called 100 times. Can we do it in an optimize manner and reduce the request counts?

like image 321
Dhiraj Sharma Avatar asked Jul 14 '14 09:07

Dhiraj Sharma


People also ask

How do I get an S3 signed URL?

Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/ . In the Buckets list, choose the name of the bucket that contains the object that you want a presigned URL for. In the Objects list, select the object that you want to create a presigned URL for.

What is the difference between CloudFront signed URL and S3 signed URL?

In CloudFront, a signed URL allow access to a path. Therefore, if the user has a valid signature, he can access it, no matter the origin. In S3, a signed URL issue a request as the signer user.

How do S3 pre-signed URLs work?

Pre-signed URLs are used to provide short-term access to a private object in your S3 bucket. They work by appending an AWS Access Key, expiration time, and Sigv4 signature as query parameters to the S3 object. There are two common use cases when you may want to use them: Simple, occasional sharing of private files.

Why should you use S3 Presigned URLs?

The main purpose of presigned URLs is to grant a user temporary access to an S3 object. However, presigned URLs can be used to grant permission to perform additional operations on S3 buckets and objects.


1 Answers

getSignedUrl() does not actually make a request. It is implemented entirely locally.

like image 141
Jim Flanagan Avatar answered Sep 21 '22 13:09

Jim Flanagan