ubuntu-cloudimg-query -V (return code: 1)
ubuntu-cloudimg-query: unrecognized option '--version'
Usage: ubuntu-cloudimg-query [ options ] criteria
Get the latest Ubuntu ami meeting certain criteria
options:
-o | --output FILE output to file rather than stdout
-f | --format format change output to 'format'.
default: '%{ami}\n'
--arch ARCH use the specified arch
Examples:
- get the latest ami matching default criteria for release 'n'
$ ubuntu-cloudimg-query -v n
us-east-1/ebs/ubuntu-natty-11.04-amd64-server-20110426
ami-1aad5273
- get an instance-store image in i386 image in us-west-1
$ ubuntu-cloudimg-query lucid i386 instance us-west-1
ami-73c69436
- get the latest daily build of the devel release in eu-west-1
$ EC2_REGION=eu-west-1 ubuntu-cloudimg-query daily amd64 ebs o
ubuntu-cloudimg-query --help (return code: 0)
Usage: ubuntu-cloudimg-query [ options ] criteria
Get the latest Ubuntu ami meeting certain criteria
options:
-o | --output FILE output to file rather than stdout
-f | --format format change output to 'format'.
default: '%{ami}\n'
--arch ARCH use the specified arch
Examples:
- get the latest ami matching default criteria for release 'n'
$ ubuntu-cloudimg-query -v n
us-east-1/ebs/ubuntu-natty-11.04-amd64-server-20110426
ami-1aad5273
- get an instance-store image in i386 image in us-west-1
$ ubuntu-cloudimg-query lucid i386 instance us-west-1
ami-73c69436
- get the latest daily build of the devel release in eu-west-1
$ EC2_REGION=eu-west-1 ubuntu-cloudimg-query daily amd64 ebs o