This post is supposed to be a quick cheat sheet of integrating your Scala product with Amazon S3. The pre-requisites are that you have a valid S3 account and have the keys to access the account.
We have put our S3 credentials in our application.conf. We use the Typesafe Config for managing our configurations. So our example entries would be
Now, we need to have the AWS dependency in the build.sbt file
And then the code is pretty straight forward, where we create the AWS client
and then use it for various operations on the S3. Let us look at Upload, Delete and checking if a file exists