LaunchConfiguration launchConfiguration = new LaunchConfiguration(amiName);
launchConfiguration.setKeyName(keyPair);
launchConfiguration.setSecurityGroup(Collections.singletonList(securityGroup));
launchConfiguration.setAvailabilityZone("us-east-1c");
launchConfiguration.setMonitoring(false);
ReservationDescription reservationDescription = jec2.runInstances(launchConfiguration);
When I attempt to run the instance, I get an exception:
com.xerox.amazonws.ec2.EC2Exception: Client error : The parameter LaunchSpecification is not recognized
at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2289)
at com.xerox.amazonws.ec2.Jec2.runInstances(Jec2.java:648)
...
I don't understand what's happening, this code worked beautifully in 1.6. I can't quite figure out what LaunchSpecification is, but it seems to be something related to Spot instances, but I'm not using Spot instances. Anyone have any idea what I should be doing?
Sander
--
You received this message because you are subscribed to the Google Groups "typica" group.
To post to this group, send email to typ...@googlegroups.com.
To unsubscribe from this group, send email to typica+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/typica?hl=en.