Git Product home page Git Product logo

awsfs's Introduction

awsfs

Build Status

This package provides a filesystem-like interface to Amazon Web Services.

It is in early development and only provides read access to a few services (currently iam, ec2, elb, dynamodb, and s3).

Installation

First install FUSE, a native package that allows filesystems like this one to be implemented in userland. You can get it from https://osxfuse.github.io/ or from homebrew:

$ brew install Caskroom/cask/osxfuse

Only local dev installation of awsfs is currently supported:

$ git clone https://github.com/adamcath/awsfs.git
$ pip install --user -e awsfs

Getting started

Before you can use awsfs, you need to tell it about your AWS credentials. The simplest way is to set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. See the AWS docs for other methods.

Now you can mount awsfs:

$ mkdir ~/aws  # You could put this anywhere
$ awsfs ~/aws

Let's play around:

$ cd ~/aws
$ ls
dynamo ec2    elb    iam    s3
$ cd dynamo/us-west-2
$ ls
some_table
another_table

To see an automated demo, run ./demo.sh. The demo uses YOUR AWS account, so it's best if you have some stuff in there.

Running tests

Once you've installed awsfs (see above):

$ pip install -r requirements.txt
$ ./unit_tests.sh
test_when_an_op_returns_then_propagate_it (test_error_framework.TestOperationWrapper) ... ok
...
Ran 4 tests in 0.001s

OK

TODO for beta

The project is in a very early state. It's more convenient to track all the un-done stuff here than in a lot of separate issues.

  • Tests
  • Which services should we support?
  • Paging: a Dynamo table could be a very big directory. Sadly Fusepy appears to hide the streaming directory APIs.
  • Modeling: what are the principals behind whether something is a file or dir? Currently its a judgment call.
  • Modeling: let's represent links between things in a consistent way.
  • Multi-threading: I think it's thread-safe now, but I don't understand FUSE's threading model well enough to be confident.
  • Permissions: can we map from AWS?
  • Caching: Currently most things are just on a 60 second cache, period. Can we do better (e.g. if you modify something through awsfs, you should probably see those writes immediately).
  • Logging: do more. Is syslog really appropriate?
  • Writes: currently it's read only. There are some cases where writing directly would be natural (e.g. dynamo, s3), and other cases where it might make more sense to expose "programs" (cd ec2/<instance-id>; terminate).
  • Queries: make it easy to search dynamo/s3 not by primary key? You can use grep but it's very inefficient and not always natural. e.g. cd dynamo-table; query firstname=foo Is this in scope?
  • getattr returns some fake values (size, timestamps). Does it matter? Can we improve without loading the whole things?
  • Implement statfs?

awsfs's People

Contributors

adamcath avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.