Amazon s3 download limit

I am working on an iOS application that will upload small videos to amazon s3. The videos will then be publicly available and the user will be able to distribute the URL for each video. I am concerned about streaming costs (for example, if the video was a virus). At ~ $ 0.12 per GB of bandwidth, this can quickly become expensive.

I would like to implement some kind of upload limit for each video to prevent this. Once a video has been downloaded a certain number of times per month, it is no longer publicly available and cannot be downloaded.

I looked through various documents and did not find a suitable way for this. The only possible solution I found was to periodically pull out the log files for my s3 bucket and use this data to determine how many times a particular video was downloaded. Is this my best choice here, or is there a better way?

Thank!

+4
source share
1 answer

You can do this, but require you to do some encoding at your end to make it work.

1 s3, , , , .

, s3:

http://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html

, , , , - - , , 20 , , , .

2, imo , eco ( ) iOS- s3-ios app, ec2, ( , , dynamodb rds), URL- s3 , . , s3, ec2 , / - / , , , .

0

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


All Articles