You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Barak Merimovich <ba...@gmail.com> on 2013/07/31 15:16:36 UTC
Default Image ID
Hi,
I've noticed that when starting a machine without providing jclouds with an
imageId, I get some default image.
in amazon for instance, the default image used is 'ami-99df3ff0'.
I was wondering how you choose these images and whether I can count on
these images to always be available.
My objective is to not be dependent on a specific amazon image ID (or any
other cloud image) for that matter, and to always have a working image id,
since I've noticed image ids tend to change or get deprecated.
Thanks,
Barak
Re: Default Image ID
Posted by Andrew Phillips <an...@apache.org>.
> I was wondering how you choose these images and whether I can count on
> these images to always be available.
Assuming you are creating images using
ComputeService.createNodesInGroup [1], the image is chosen based on
the TemplateOptions provided. If you don't provide them, the default
set will be used, which can usually be found in the provider's
metadata, e.g. [2].
Hope this helps!
ap
[1]
http://javadocs.jclouds.cloudbees.net/org/jclouds/compute/ComputeService.html#createNodesInGroup(java.lang.String, int,
org.jclouds.compute.options.TemplateOptions)
[2]
https://github.com/jclouds/jclouds/blob/master/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2ProviderMetadata.java#L72