Geetanshu Gulati
Geetanshu Gulati

Reputation: 782

Do data transfer cost apply to access images from amazon S3?

Scenario is that I want to store my images uploaded by user through my application in amazon s3 and later retrieve them on demand. So I was going through how much cost it will be there to store images in s3 and I across term "Data transfer cost",

I am bit confused like suppose I uploaded and image in s3 and make it public and when even I access that image suppose in a Brower tab through public s3 link, do I have to pay data transfer cost for that? or accessing and image from it's public link is free?

Same is if I download my image from s3 using my front end application, then also I have to pay data transfer cost?

Second part of my question :
If data transfer cost apply can I avoid my data transfer cost by first accessing my image from NodeJS running in ec2 instance then sending it back from my NodeJS application running in ec2 instance ?

Upvotes: 0

Views: 1533

Answers (1)

luk2302
luk2302

Reputation: 57184

Yes, you pay in both cases, that is exactly what the data transfer cost means.
Additionally you pay for the storage and for the number of requests.

You can e.g. go through https://calculator.aws/#/createCalculator to get a rough estimate of what cost you may incur.

No, you cannot avoid the cost. If you start loading them into the ec2 machine that cost is free (assuming same region etc.) but then transferring the data from the ec2 instances does cost again.

Upvotes: 1

Related Questions