Git Product home page Git Product logo

aws-vagrant-docker's Introduction

AWS-backed Vagrant using Docker

Manage AWS instances using the Vagrant client, running in Docker.

Build:

$ docker build -t aws-vagrant .

And make any desired edits to the Vagrantfile.

Now run:

$ docker run \
         --rm \
         -ti \
         -v "$PWD:/app" \
         -v "$HOME/.ssh:/app/ssh" \
         -e AWS_ACCESS_KEY_ID \
         -e AWS_SECRET_ACCESS_KEY \
         -e AWS_SESSION_TOKEN \
         aws-vagrant \
         vagrant up --provider=aws

The last line is the actual vagrant command, run inside docker.

This assumes you have the AWS credentials in the environment. If they live in your ~/.aws directory instead, use this:

$ docker run \
         --rm \
         -ti \
         -v "$PWD:/app" \
         -v "$HOME/.ssh:/app/ssh" \
         -v "$HOME/.aws:/root/.aws" \
         aws-vagrant \
         vagrant up --provider=aws

(actually I'm not 100% on whether that works. you might need to play around with the Vagrantfile a bit.)

Why?

This uses Docker because installing vagrant and the aws-vagrant plugin may not be desirable on the system you want to use it from. E.g.: a CI box.

aws-vagrant-docker's People

Contributors

hraban avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.