testing – Automatic deployment of Java applications with different parameters to EC2 instances

I’d like to performance test my Java application the most accurate way possible. I want to deploy 1000 clients (simulating users) and one server in cloud, preferably AWS. I’m not really experienced in testing on this scale.

There are two questions:

  1. Is AWS EC2 the best way to do this? I could only find monthly calculations but I guess spot priced nano instances wouldn’t cost too much for testing 1-2 hours.
  2. If AWS is suitable, how do I programmatically deploy my jars with different configurations (e.g: user login details)?

Any suggestions are appreciated!