I'm planning to use AWS EC2 for my web application and I need control over the bandwidth usage (don't want the instances to be compromised and ramping up bandwidth cost crazily). There are many threads in AWS forums on this matter and no immediate solution.

There are other cloud hosts like GAE and Rackspace but I really want to use AWS. I'm reading that in linux, there is tc command and traffic shaper programs that can cap bandwidth usage.

Anyone using them for traffic control on AWS? Are they practical? Any guide for novices (the ones I've found are pretty complex)?


Haven't done it myself, nor know of anyone who has. tc is practical, in the sense that it works - but it is very complicated to understand and implement. There are resources available that make it simpler, or give instructions... but unless you really have need of it, I wouldn't recommend it.

I'd suggest, given your primary concern is compromise of your web application leading to bandwidth cost, you consider iptables as a recourse - set up local roles that inhibit outbound connections, as these should be fairly rare given the standard nature of web apps?

| improve this answer | |
  • Hi there, thanks a lot for the answer :) I'll look into iptables since tc is very complex! – Style Nov 22 '10 at 3:49

Amazon says they will soon open an API call that will allow you to use a script to check your $$$ usage. But, they will not implement such a feature within the browser AWS interface.

| improve this answer | |

Your best bet is to set up a Cacti service to monitor your server via SNMPd.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.