Giter Site home page Giter Site logo

mortadelo's Introduction

Mortadelo CLI tool

GitHub version Build Status codecov

mortadelo img

What for?

Mortadelo makes assuming AWS roles pretty simple, asking for temporary AWS credentials and dumping them to a file (~/.aws/credentials by default)

Installation

You should install the latest compiled release (recommended):

wget https://github.com/ivanfoo/mortadelo/releases/download/v0.3.1/mortadelo_v0.3.1_linux_amd64.tgz
tar xfv mortadelo_v0.3.1_linux_amd64.tgz
cp mortadelo_v0.3.1_linux_amd64/mortadelo /usr/local/bin/

Also, you can get the latest changes running the classical:

go get -v github.com/ivanfoo/mortadelo

How to use it

Usage:
  mortadelo [OPTIONS] <assume | clean | configure>

Help Options:
  -h, --help  Show this help message

Available commands:
  assume     assume role
  clean      clean generated files
  configure  configure roles alias file

Configure a new alias in file (~/.mortadelo/alias by default):

mortadelo configure --alias foo --role arn:aws:iam::xxxxxxxxxxxx:role/foo

Assume an alias role:

mortadelo assume --alias foo

Assume an alias role that requires MFA:

mortadelo assume --alias foo --mfa

Assume a literal role arn:

mortadelo assume --alias foo --role arn:aws:iam::xxxxxxxxxxxx:role/foo

Assume a literal role arn with MFA:

mortadelo assume --mfa --alias foo --role arn:aws:iam::xxxxxxxxxxxx:role/foo

Alias file example

[foo]
arn = arn:aws:iam::xxxxxxxxxxxx:role/foo

[bar]
arn = arn:aws:iam::yyyyyyyyyyyy:role/bar

mortadelo's People

Contributors

ivanfoo avatar obscurered avatar

Watchers

James Cloos avatar Francisco Javier Barón  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.