Giter VIP home page Giter VIP logo

vm-rs's Introduction

VM-RS

Utilities to help with VMs and S3 storage. Install with git and cargo:

cargo install --git <git path>

Supported Workflows

MFA Authentication

Setup device ARN in ~/.config/vm-rs/config.toml:

device = "<arn_string>"

Example usage:

vm-rs mfa --check || {
    echo -n "Enter OTP token: "
    read token
    vm-rs mfa "$token"
}

The session token is maintained under a mfa profile in ~/.aws/credentials.

Sync

Sync the current directory (recursively) to S3 or a rsync-able remote directory. The remote URL is determined by the current directory, and a prefix mapping config file found in the current directory or any parent directory.

Create a file .s3-prefix or .vm-prefix that maps a given directory to it's corresponding remote URL / path. Descendents of this directory will automatically be mapped appropriately based on suffix from the directory containing the prefix mapping file.

Options support syncing to S3 (-3), sync only git-ls-files (-g), and many more.

# prints the rsync command that will be run
vm-rs sync --print

# sync output of `git ls-files` to remote
vm-rs sync -g

VM management

Use vm-rs vm to manage VMs. This is primarily a wrapper around aws ec2, but also supports setting up SSH config (under alias Host vmrs).

vm-rs vm --help

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.