'How to do stress testing for AWS CPUUtiliazation and MemoryUtilization?

I am using AWS cloud ECS services and created once ECS cluster. In which there is one FargateService and behind that 2 containers are running. Two alarms have been created for fargate service on threashold 95.

Everything looks fine now Testing part comes into picture. I want test alarms functionality. is there any easy way in AWS using some AWS service or manual script so that I can increase CPU and Memory use to test alarm functionality .



Sources

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

Source: Stack Overflow

Solution Source