mslinn / vfs-s3Test

Checking out vfs-s3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Virtual File System Test

See abashev/vfs-s3, the jets3t samples and the commons-vfs Javadoc.

Setup

You might want to install AWS CLI to make working with AWS S3 easier.

Here is a typical configuration file for AWS CLI. This demo uses the same configuration file:

$ cat ~/.aws/config
[default]
aws_access_key_id = AKIADFIUYFEWFOEWFJLEWHF
aws_secret_access_key = JI1OKdRTrXMudidsdfoiwpeofiwepoifpew
region = us-east-1

Running

This demo requires an AWS S3 bucket that your credentials have read/write access to. Let's call that bucket mybucket. You can run the demo like this:

$ aws s3 mb mybucket # create bucket
$ sbt "runMain VTest mybucket"
$ aws s3 ls mybucket # verify that README.md was copied to mybucket

About

Checking out vfs-s3

License:Apache License 2.0


Languages

Language:Scala 94.2%Language:Java 5.8%