aws-s3-scala ![Build Status](https://camo.githubusercontent.com/2eeaadcd96cc3c4e75bb78916ed58594ac2ba79397032da5cc7420c2fee5e3d5/68747470733a2f2f7472617669732d63692e6f72672f62697a72656163682f6177732d73332d7363616c612e7376673f6272616e63683d6d6173746572)
Scala client for Amazon S3
How to use
Add a following dependency into your build.sbt
at first.
libraryDependencies += "jp.co.bizreach" %% "aws-s3-scala" % "0.0.15"
Then you can access S3 as following:
import jp.co.bizreach.s3scala.S3
import awscala.s3._
import awscala.Region
implicit val region = Region.Tokyo
implicit val s3 = S3(accessKeyId = "xxx", secretAccessKey = "xxx")
val bucket: Bucket = s3.createBucket("unique-name-xxx")
bucket.put("sample.txt", new java.io.File("sample.txt"))
s3-scala also provide mock implementation which works on the local file system.
implicit val s3 = S3.local(new java.io.File("s3data"))
Major methods are implemented in this mock, however some methods are not implemented. These methods throw NotImplementedError
if invoked.