'Set limit bandwidth on EC2 instance

I'm going to use EC2 as test machines, and I have test scenario where I need bandwidth limit. So I'm wondering is there a way to set bandwidth limit using Java API for EC2, maybe using ELB or ?

Thanks



Solution 1:[1]

But, you can manage the bandwidth for your Gateway. Please refer to this AWS official link

Solution 2:[2]

If your servers use Linux, enable Traffic Control (tc) or you can setup your own gateway with tc. In windows 10 - https://www.makeuseof.com/tag/tools-limit-bandwidth/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sreejith v s
Solution 2 Pablo Pessolani