Ad

Make A S3 Resource Public Read-only For Some Duration Using The AWS SDK For Node?

I have integrated S3 to my node app and upload certain documents on to S3. Need to share these documents with a third party. Send the URLs to the third party via an API and they will download it immediately. I want to make the S3 objects public for some duration. How do i achieve this ?

Ad

Answer

S3 presigned URL is what you are looking for, you can use them to generate links for your third party with expiration time. I'm posting the reference links below

Presigned url AWS official documentation

A blog post which demonstrate presigned urls further

Ad
source: stackoverflow.com
Ad