[Haskell-cafe] Google Cloud API

Tomas Carnecky tomas.carnecky at gmail.com
Wed Aug 26 21:57:04 UTC 2015

I recently migrated some infrastructure from AWS to Google Cloud and needed
a way to upload a file to a storage bucket. For AWS there's an awesome
Haskell library (aws), but I couldn't find anything comparable for
interacting with the Google Cloud APIs.

While it wouldn't be difficult to write a standalone function for that
simple task, I decided to package it up in a library. Currently implemented
is uploading a ByteString to a bucket and some metadata server queries.
That's all I need currently, but I may add a few more selected APIs in the
near future (mostly around managing compute instances).

Adding support for new APIs should be relatively easy, even without having
to change the library itself. All the internals are exposed to users of the
library. There is nothing private or hidden. The library gives you access
to convenience functions to send HTTP requests. That, coupled with a bit of
JSON/aeson parsing, should cover most use cases.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150826/22caa7da/attachment.html>

More information about the Haskell-Cafe mailing list