I developed a tear down script to do the above. And in the process, in order to test it, pulled out a spark-up script from my general jmeter CI solution. So this page now presents two scripts to independently spark up and tear down AWS instances.
The instances are based on several parameters set in a config file, including an AMI image and an AWS instance size:
(the full config file is in the zip)
To run these scripts you just need the ec2 api installed. And although these scripts were developed for linux, a windows version would be very similar and I can verify that the ec2 api has worked fine for me on a windows box as well.
The spark up script is called like this:
- Name="jmeter-ec2-<project name>" count=”3” ./spark-up-ec2.sh