Amazon S3 Software Access Data Usage

Is there a way to programmatically access Amazon S3 account usage data?

I am creating an application that will charge end users for using my Amazon S3 bucket. Since I will be the intermediary between AWS and the end user for PUT / DELETE operations, I will be able to track the loading and use of the repository, but I will allow users to access their files directly using shared links, so I will not be able to directly track downstream usage.

So my plan is to regularly check the download. Is there anywhere in the AWS API where I can access usage statistics?

+6
source share
2 answers

Unable to get usage statistics with API. This issue has been actively discussed in the AWS forum for many years without feedback from the AWS team.

https://forums.aws.amazon.com/thread.jspa?messageID=277024

An alternative would be to include the Amazon S3 server log and analyze it yourself.

Another option is to use the Amazon DevPay service.

Thanks Andy

EDIT: here is the official Amazon S3 documentation regarding Amazon S3 access logs: http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?ServerLogs.html

+4
source

Since December 2011, if you have premium support, you can control your estimated costs (both aggregated and on the server) using CLoudWatch. There is no official documentation right now, but I wrote a review:

http://blog.bitnami.org/2011/12/monitor-your-estimated-aws-charges-with.html

0
source

Source: https://habr.com/ru/post/896606/


All Articles