AWS via Haskell Part 4 (SimpleDB)


This will be another quick instalment of “AWS via Haskell”. Yesterday we flew through AWS’s Simple Queue Service. Today, we’ll look at SimpleDB.

Part 1: Prerequisites

Firstly, you’ll need access to SimpleDB. There are several options:

localstack does not, for reasons unknown to me, provide a SimpleDB implementation.

Part 2: aws-via-haskell.cabal: the dependencies

You’ll see that our sdb-app target depends on the following

We’ll also use some of the helper functions in our shared AWSInfo.hs module.

Part 3: Main.hs: the code

This program demonstrates how to:

Part 4: The full working demo project

I’ve gathered this all together into this buildable project. As always, I like to build using Stack.

Tags: Haskell, AWS, SimpleDB

All content © 2018 Richard Cook. All rights reserved.