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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org