AWS via Haskell Part 2 (S3)


In this instalment of “AWS via Haskell”, we’ll look at how to perform basic tasks with S3. This follows on from my previous post in which I talked about DynamoDB.

Part 1: Prerequisites

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

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

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

Part 3: AWSInfo.hs: helper functions

The AWSInfo module provided here extracts some of the helper functions from my previous post and generalizes them to all AWS services.

Part 4: Main.hs: the code

This program demonstrates how to:

Part 5: The full working demo project

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

Related posts

Lambda updates
Haskell in AWS Lambda
AWS via Haskell Part 7 (SSM)
AWS via Haskell Part 6 (EC2)
AWS via Haskell Part 5 (Lambda)
AWS via Haskell Part 4 (SimpleDB)
AWS via Haskell Part 3 (SQS)
AWS via Haskell Part 1 (DynamoDB)



Content © 2023 Richard Cook. All rights reserved.