How Does S3 Pricing Work for Pre-Signed URLs?

0
1
Asked By CuriousCat747 On

I'm developing an application that utilizes Amazon S3, and I've encountered some confusion regarding its pricing model. When I generate a pre-signed URL for a `PUT` request, I see it costs around $0.005 for every 1,000 requests. To make things a bit easier for users uploading images, I set the expiration time for these URLs to one hour. This allows users to re-upload the same image without needing a new URL each time.

However, I'm concerned about whether repeatedly uploading to that same pre-signed URL incurs additional costs. Will I only be charged for generating the pre-signed URL, or will each upload to that URL also come with its own fee?

5 Answers

Answered By CloudMaster99 On

Remember, every time a user uploads something, that's considered a PUT request and will incur charges. So watch out for users that might keep uploading without stopping!

Answered By TechWizard42 On

You'll actually be charged for every request made to S3 through that pre-signed URL. The pre-signing just gives temporary access to the bucket, but each upload still counts as a PUT request, which will cost you.

CuriousCat747 -

Got it, thanks for clarifying!

Answered By StreamlineDev34 On

Good point! If users can only get a signed URL for a limited time, it'll help limit how often they hit your bucket and keep the costs lower.

Answered By ByteBoss27 On

It's generally best to set a shorter expiration for these URLs, like 1 minute, especially if you expect users to upload frequently. This way, you can control access more tightly while keeping costs in check.

Answered By DataDude88 On

Just to clarify, creating the pre-signed URL itself doesn't cost anything. It's an offline operation that doesn't hit AWS servers, but every upload will add to your bill.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.