The next step is to test the Auto Scaling group; it should add an instance when the CPU utilization is greater than 60% for 5 minutes and remove an EC2 instance if the CPU utilization falls to less than 30% for 20 minutes. The easiest way to test this is to load the CPU for more than 5 minutes and check if an EC2 instance is added. As we have configured the launch configuration to assign a public IP address to an instance, the public IP address of the instance is available from Instances in the EC2 dashboard navigation pane.
Log in to the instance via ssh:
ssh -i ~/.ssh/AWSBook2EdKeyPair.pem firstname.lastname@example.org
To tax the CPU, use bc, which is precision calculator language to compute a value that will take a ...