casolorz
casolorz

Reputation: 9544

Any way to get the cost per file on s3 or cloudfront?

I have a small static site hosted on s3, served through cloudfront. I've been trying to reduce the costs but now I'm at a point that I really just need to know which files are getting downloaded the most. How can I figure that out?

Thanks.

Upvotes: 0

Views: 384

Answers (2)

Matt Houser
Matt Houser

Reputation: 36073

Take a look at your CloudFront distribution statistics. In the AWS Management Console, go to CloudFront, and select "Popular Objects" from the left navigation panel.

It will show you the the following statistsics:

  • requested URL (into CloudFront)
  • whether it was a cache hit or miss,
  • bytes for misses (this tells you how many bytes are read from your origin)

Upvotes: 3

mewa
mewa

Reputation: 1552

You can enable analytics for the bucket (under Management tab), which will help you understand if any files can be moved for example to Infrequent Access storage class.

If you want to have the exact access logs, you could also enable Access Logging

Upvotes: 0

Related Questions