A python based code collection that can automate and create programmatic interface with AWS
You can create an EC2 spot instance by using the following command.
python ec2_create.py --config config.cfg
To learn more about the config options and how to automate this with crontab visit the following blog page