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.
Firstly, you’ll need access to S3. There are several options:
aws-via-haskell.cabal
: the dependenciesYou’ll see that our s3-app
target depends on the following
amazonka
amazonka-s3
base
bytestring
conduit-extra
lens
resourcet
text
AWSInfo.hs
: helper functionsThe AWSInfo
module provided here extracts some of the helper functions from my previous post and generalizes them to all AWS services.
Main.hs
: the codeThis program demonstrates how to:
I’ve gathered this all together into this buildable project. As always, I like to build using Stack.
Content © 2024 Richard Cook. All rights reserved.