The basic steps for running the Amazon EC2 Spot Instance sample are:
# Fill in your AWS Access Key ID and Secret Access Key
# http://aws.amazon.com/security-credentials
accessKey =
secretKey =
CreateSecurityGroupApp.java
file, located in the same directory as the properties file. To use ant to run the file, type "ant CreateSecurityGroupApp"GettingStartedApp.java
file, located in the same directory as the properties file. The sample prints information to the standard output. To use ant to run the file, type "ant GettingStartedApp"NOTE: The sample also includes an Ant build.xml file to run the sample.
See the AWS Developer Guide for Javafor more information about running this sample.