I want to exploit the AWS free tier to learn and do some personal projects. However what worries me is the bandwidth limitation. Specifically, the AWS free tier FAQ states that "15 GB of bandwidth out aggregated across all AWS services". Now, it is very unlikely that my intended use will reach this limit, however shit happens and who knows if my website gets mentioned on Reddit or something and suddenly I have a $500 dent in my wallet due to bandwidth. Or maybe someone decides it would be funny to DDoS my instance. Or who knows what.
What I would want to do is create some kind of killswitch. Basically when the amount of bandwidth used gets to something like 14GB, murder everything that uses bandwidth and keep it that way until I manually start it back up again.
Any ideas on how to achieve this?