Export to GitHub

typica - issue #94

Unable to launch EC2 images with security group or user data


Posted on May 20, 2010 by Happy Giraffe

Typica 1.7 Changes in rev 312 broke the image launch, "LaunchSpecification." is prepended to UserData and SecurityGroup parameters when it shouldn't.

Related to Issue #90, may be the same cause

http://code.google.com/p/typica/source/diff?spec=svn329&r=312&format=side&path=/trunk/java/com/xerox/amazonws/ec2/LaunchConfiguration.java&old_path=/trunk/java/com/xerox/amazonws/ec2/LaunchConfiguration.java&old=306

API docs: http://docs.amazonwebservices.com/AWSEC2/2009-11-30/APIReference/ApiReference-query-RunInstances.html

The exception I'm getting is

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)

Comment #1

Posted on Jun 4, 2010 by Massive Kangaroo

I'll do some testing, but look at page 172 of the ec2 API reference. It describes it as I have it coded. Now, sometimes the docs are wrong.

Comment #2

Posted on Jun 4, 2010 by Massive Kangaroo

I'll do some testing, but look at page 172 of the ec2 API reference. It describes it as I have it coded. Now, sometimes the docs are wrong.

Comment #3

Posted on Jun 4, 2010 by Massive Kangaroo

On those two params, I hadn't removed the "LaunchConfiguration." string in favor of a passed in prefix on the method that setup query params for spot and regular instance requests. Fixed in SVN

Comment #4

Posted on Jun 4, 2010 by Massive Camel

David Thx for the quick response. I have confirmed this is working.

Comment #5

Posted on Jun 15, 2010 by Happy Ox

Any sense of when a new release will be cut with this fix? It is a fairly major problem to not be able to run instances with security groups. I'm using trunk for now, but wondering how soon you think you'll cut another release (maybe a 1.7.1 release?). Thanks.

Status: Fixed