Posts Tagged ‘lisp’

CL-EC2, a Common Lisp Interface to Amazon’s EC2 Query API, Now Available

Tuesday, February 23rd, 2010 by David Young

Version 0.1 of CL-EC2 is now available for download, under an MIT-style license. The project is hosted at common-lisp.net, and may be found here. There are several mailing lists available, and contributors are welcome.

Tags: , , , ,
Posted in SaffronSierra | No Comments »

Amazon CloudWatch Interface for Common Lisp

Thursday, February 4th, 2010 by David Young

To complement our Common Lisp EC2 interface, I’ve written a similar package for Amazon’s CloudWatch, an “easy-to-use web service that provides comprehensive monitoring for Amazon Elastic Compute Cloud (Amazon EC2) and Elastic Load Balancing”. There are currently just two operations provided by CloudWatch: ListMetrics and GetMetricStatistics, both of which are supported by our new package.

The CloudWatch Lisp interface has some work remaining; mostly just parsing the responses from Amazon into more useful representations of the metrics (similar to the way we transform EC2 responses). Since GetMetricStatistics can return a lot of information, I’ll have to decide how best to represent this data in an easy-to-use, Lispy fashion. At present, the CloudWatch responses are filtered through the s-xml package and returned in a “parsed-xml” format.

(more…)

Tags: , ,
Posted in SaffronSierra | No Comments »

Amazon EC2 Interface for Common Lisp

Friday, January 29th, 2010 by David Young

A few weeks ago I was in the “post-holiday doldrums” and needed a lift out of my rut. I was missing Lisp (hadn’t written any Lisp code in two years); was curious about the details of the EC2 API protocol; and wanted a better environment for managing our Sierra instances that fit my style of working (I’m an old system-software guy that uses Emacs and Bash a lot).  So I took a couple of days and wrote an EC2 API for Common Lisp, and then built a Sierra management interface on top of that. As it turned out, there were several open-source Common Lisp packages that helped: Edi Weitz’s drakma, a tidy web client; ironclad, an easy-to-use cryptography package; s-xml, a simple xml parser; and s-base64 for simple base64 encoding/decoding. Using these packages I had a functioning EC2 interface in half a day, and by the third day the package had everything I needed to build my Sierra layer on top. The decisive advantage this approach has over my previous python command-line interface is that my Sierra environment is running all the time (Lisp within an Emacs session); and thus I am able to interact with Sierra via the Lisp REPL., make changes without having to restart my Sierra environment, etc. Very cool.

(more…)

Tags: , ,
Posted in SaffronSierra | 5 Comments »