Bug#694035: JSON based API to query available AMIs
- To: 694035@bugs.debian.org
- Subject: Bug#694035: JSON based API to query available AMIs
- From: Charles Plessy <plessy@debian.org>
- Date: Sun, 6 Jan 2013 10:59:15 +0900
- Message-id: <[🔎] 20130106015915.GA21877@plessy.org>
- Reply-to: Charles Plessy <plessy@debian.org>, 694035@bugs.debian.org
- In-reply-to: <50B21DB0.2030507@rcpt.to>
- References: <CACFaiRzcj9jc0+WyivkSVzytqO0P+RsJHOrhhwoEbGd5bdjsig@mail.gmail.com> <CAMcOGXGKbFx_hBPmgU=xSQPTnB5i04vHDcFsDzeCZqi4e4VMyw@mail.gmail.com> <50ABF5EC.9030009@thinksome.com> <20121121155518.GA24877@upsilon.cc> <50AF1D3E.7080003@thinksome.com> <20121124103558.GA22654@upsilon.cc> <CAMcOGXFsU1ZiMK_sBY_q2hxgWSv5xOYFM811nHz_TTx+hM+qxA@mail.gmail.com> <50B21DB0.2030507@rcpt.to>
Le Sun, Nov 25, 2012 at 09:31:28PM +0800, James Bromberger a écrit :
>
> Any AMI list could be done as a CloudFront template - see the example on
> http://wiki.debian.org/Cloud/AmazonEC2Image/Squeeze. This example can be
> put into an AWS Bucket for public distribution. We could also chose to
> publish the "mappings" section similarly for inclusion into other templates.
Hi James and everybody,
in order to experience myself with parsing remote JSON data, I have copied the
mapping of image identifiers of Cloud/AmazonEC2Image/Squeeze to
Cloud/AmazonEC2Image/Squeeze/JSON.
Here is what I added to the Cloud/AmazonEC2Image/Squeeze page.
It is planned to provide a machine-readable version of the above list of
images. For the sake of the brainstorm, a JSON version is temporarly placed at
Cloud/AmazonEC2Image/Squeeze/JSON. However, the structure is very likely to
change, see #694035 for details. Here is a naive example on how to query the
list. euca-describe-images $(curl --silent
http://wiki.debian.org/Cloud/AmazonEC2Image/Squeeze/JSON?action=raw | jsonpipe
| awk '/Debian606.ap-northeast-1.64/ {print $2}' | sed 's/"//g')
Have a nice week-end,
--
Charles Plessy
Tsurumi, Kanagawa, Japan
Reply to: