Giter Club home page Giter Club logo

iam_assume_role's Introduction

iam_assume_role

Overview Diagram: alt text

Download the asmrl utility: https://raw.githubusercontent.com/jonskelton/iam_assume_role/master/bin/asmrl

AWS Environment Configuration:

Profiles are supported.

~/.aws/config:

[default]
region=us-west-2

[profile profilename0]
output=json

AWS Credentials:

AWS API access credentials for the user's IAM account in the Executor AWS account.

~/.aws/credentials:

[default]
aws_access_key_id = AKIADEMODEMODEMO
aws_secret_key_key = sanitizedkeysanitizedkeysanitizedkey

[profilename0]
aws_access_key_id = AKIAPROFILENAME0DEMO
aws_secret_key_key = profilename0sanitizedkeysanitizedkey

The asmrl utility may be configured via its own configuratin file.

~/.aws/asmrl.conf:

{ 
  "defaults": {
    "profile": "default",
    "region": "us-west-2"
  },
  "readonly@managed0": {
    "profile": "profilename0",
    "role": "arn:aws:iam::9876543210:role/ReadOnly"
  },
  "admin@managed0": {
    "profile": "profilename0",
    "role": "arn:aws:iam::9876543210:role/Admin"
  }
}

Bash configuration via ~/.bashrc:

PROMPT_COMMAND='asmrl --prompt'

function readonly@managed0() {
    eval $(asmrl readonly@managed0 $1)
}

function admin@managed0() {
    eval $(asmrl admin@managed0 $1)
}

CLI example:

$ admin@managed0 6DIGITMFACODE
aws: admin@managed0 until 17:59:33
$ 

iam_assume_role's People

Contributors

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